Skip to content

Commit

Permalink
test fix 10
Browse files Browse the repository at this point in the history
  • Loading branch information
FEDERICOMB96 committed Jul 23, 2024
1 parent 775069c commit ee269dc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
REAPI_INCLUDE: ${{ env.REAPI_INCLUDE_PATH }}
run: |
cat ${GITHUB_WORKSPACE}/addons/amxmodx/scripting/include/mm_incs/version.inc
cat ${GITHUB_WORKSPACE}/addons/amxmodx/scripting/include/multimod_manager_version.inc
mkdir ../plugins/
for sourcefile in *.sma;
do
Expand Down
52 changes: 26 additions & 26 deletions version/appversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,35 +46,35 @@ update_appversion()
{
echo Updating $APPVERSION_FILE, new version is '"'$NEW_VERSION'"'

echo -e "#if defined _mm_version_included_\r" > $APPVERSION_FILE
echo -e " #endinput\r" >> $APPVERSION_FILE
echo -e "#endif\r" >> $APPVERSION_FILE
echo -e "#define _mm_version_included_\r" >> $APPVERSION_FILE
echo -e "\r" >> $APPVERSION_FILE
echo -e "// MultiMod Manager version\r" >> $APPVERSION_FILE
echo -e "#define MM_VERSION $NEW_VERSION_INC\r" >> $APPVERSION_FILE
echo -e "#define MM_VERSION_MAJOR $MAJOR\r" >> $APPVERSION_FILE
echo -e "#define MM_VERSION_MINOR $MINOR\r" >> $APPVERSION_FILE
echo -e "#define MM_VERSION_MAINTENANCE $MAINTENANCE\r" >> $APPVERSION_FILE
echo -e "#define MM_VERSION_COMMIT $COMMIT_COUNT\r" >> $APPVERSION_FILE
echo -e "\r" >> $APPVERSION_FILE
echo -e "#define PLUGIN_VERSION fmt("v%d.%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_MAINTENANCE, MM_VERSION_COMMIT)" >> $APPVERSION_FILE
echo -e "#if defined _mm_version_included_\r">$APPVERSION_FILE
echo -e " #endinput\r">>$APPVERSION_FILE
echo -e "#endif\r">>$APPVERSION_FILE
echo -e "#define _mm_version_included_\r">>$APPVERSION_FILE
echo -e "\r">>$APPVERSION_FILE
echo -e "// MultiMod Manager version\r">>$APPVERSION_FILE
echo -e "#define MM_VERSION $NEW_VERSION_INC\r">>$APPVERSION_FILE
echo -e "#define MM_VERSION_MAJOR $MAJOR\r">>$APPVERSION_FILE
echo -e "#define MM_VERSION_MINOR $MINOR\r">>$APPVERSION_FILE
echo -e "#define MM_VERSION_MAINTENANCE $MAINTENANCE\r">>$APPVERSION_FILE
echo -e "#define MM_VERSION_COMMIT $COMMIT_COUNT\r">>$APPVERSION_FILE
echo -e "\r">>$APPVERSION_FILE
echo -e "#define PLUGIN_VERSION fmt("v%d.%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_MAINTENANCE, MM_VERSION_COMMIT)\r">>$APPVERSION_FILE

echo Updating $APPVERSION_FILE_NATIVES, new version is '"'$NEW_VERSION'"'

echo -e "#if defined _multimod_manager_version_included_\r" > $APPVERSION_FILE_NATIVES
echo -e " #endinput\r" >> $APPVERSION_FILE_NATIVES
echo -e "#endif\r" >> $APPVERSION_FILE_NATIVES
echo -e "#define _multimod_manager_version_included_\r" >> $APPVERSION_FILE_NATIVES
echo -e "\r" >> $APPVERSION_FILE_NATIVES
echo -e "// MultiMod Manager version\r" >> $APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION $NEW_VERSION_INC\r" >> $APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_MAJOR $MAJOR\r" >> $APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_MINOR $MINOR\r" >> $APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_MAINTENANCE $MAINTENANCE\r" >> $APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_COMMIT $COMMIT_COUNT\r" >> $APPVERSION_FILE_NATIVES
echo -e "\r" >> $APPVERSION_FILE_NATIVES
echo -e "#define MM_NATIVES_API_VER fmt("v%d.%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_MAINTENANCE, MM_VERSION_COMMIT)" >> $APPVERSION_FILE_NATIVES
echo -e "#if defined _multimod_manager_version_included_\r">$APPVERSION_FILE_NATIVES
echo -e " #endinput\r">>$APPVERSION_FILE_NATIVES
echo -e "#endif\r">>$APPVERSION_FILE_NATIVES
echo -e "#define _multimod_manager_version_included_\r">>$APPVERSION_FILE_NATIVES
echo -e "\r">>$APPVERSION_FILE_NATIVES
echo -e "// MultiMod Manager version\r">>$APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION $NEW_VERSION_INC\r">>$APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_MAJOR $MAJOR\r">>$APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_MINOR $MINOR\r">>$APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_MAINTENANCE $MAINTENANCE\r">>$APPVERSION_FILE_NATIVES
echo -e "#define MM_VERSION_COMMIT $COMMIT_COUNT\r">>$APPVERSION_FILE_NATIVES
echo -e "\r">>$APPVERSION_FILE_NATIVES
echo -e "#define MM_NATIVES_API_VER fmt("v%d.%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_MAINTENANCE, MM_VERSION_COMMIT)\r">>$APPVERSION_FILE_NATIVES
}

# Initialise
Expand Down

0 comments on commit ee269dc

Please sign in to comment.