Merge pull request #80 from xPaw/package-script

Package script fixes
This commit is contained in:
Vincent Herbet 2014-07-27 11:44:56 +02:00
commit 87c0be470b
10 changed files with 69 additions and 67 deletions

4
.gitignore vendored
View File

@ -27,3 +27,7 @@ Thumbs.db
# Build directories # Build directories
build/ build/
obj-*/ obj-*/
# AMXX plugin build related files
plugins/compile.dat
plugins/compiled/

View File

@ -4,8 +4,8 @@ compiler:
before_script: before_script:
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -y g++-multilib libc6-dev-i386 lib32stdc++6 lib32z1-dev - sudo apt-get install -y g++-multilib libc6-dev-i386 lib32stdc++6 lib32z1-dev
- CHECKOUT_DIR=$PWD && cd .. && $CHECKOUT_DIR/support/checkout-deps.sh && cd $CHECKOUT_DIR - CHECKOUT_DIR=$PWD && cd .. && $CHECKOUT_DIR/support/checkout-deps.sh --no-mysql && cd $CHECKOUT_DIR
script: script:
- mkdir build && cd build - mkdir build && cd build
- python ../configure.py --enable-optimize - python ../configure.py --enable-optimize --no-mysql
- ambuild - ambuild

View File

@ -412,6 +412,7 @@
<None Include="..\..\plugins\include\amxconst.inc" /> <None Include="..\..\plugins\include\amxconst.inc" />
<None Include="..\..\plugins\include\amxmisc.inc" /> <None Include="..\..\plugins\include\amxmisc.inc" />
<None Include="..\..\plugins\include\amxmodx.inc" /> <None Include="..\..\plugins\include\amxmodx.inc" />
<None Include="..\..\plugins\include\amxmodx_version.inc" />
<None Include="..\..\plugins\include\cellarray.inc" /> <None Include="..\..\plugins\include\cellarray.inc" />
<None Include="..\..\plugins\include\celltrie.inc" /> <None Include="..\..\plugins\include\celltrie.inc" />
<None Include="..\..\plugins\include\core.inc" /> <None Include="..\..\plugins\include\core.inc" />
@ -423,7 +424,6 @@
<None Include="..\..\plugins\include\messages.inc" /> <None Include="..\..\plugins\include\messages.inc" />
<None Include="..\..\plugins\include\sorting.inc" /> <None Include="..\..\plugins\include\sorting.inc" />
<None Include="..\..\plugins\include\string.inc" /> <None Include="..\..\plugins\include\string.inc" />
<None Include="..\..\plugins\include\svn_version.inc" />
<None Include="..\..\plugins\include\time.inc" /> <None Include="..\..\plugins\include\time.inc" />
<None Include="..\..\plugins\include\vault.inc" /> <None Include="..\..\plugins\include\vault.inc" />
<None Include="..\..\plugins\include\vector.inc" /> <None Include="..\..\plugins\include\vector.inc" />

View File

@ -360,6 +360,9 @@
<None Include="..\..\plugins\include\amxmodx.inc"> <None Include="..\..\plugins\include\amxmodx.inc">
<Filter>Pawn Includes</Filter> <Filter>Pawn Includes</Filter>
</None> </None>
<None Include="..\..\plugins\include\amxmodx_version.inc">
<Filter>Pawn Includes</Filter>
</None>
<None Include="..\..\plugins\include\core.inc"> <None Include="..\..\plugins\include\core.inc">
<Filter>Pawn Includes</Filter> <Filter>Pawn Includes</Filter>
</None> </None>
@ -387,9 +390,6 @@
<None Include="..\..\plugins\include\string.inc"> <None Include="..\..\plugins\include\string.inc">
<Filter>Pawn Includes</Filter> <Filter>Pawn Includes</Filter>
</None> </None>
<None Include="..\..\plugins\include\svn_version.inc">
<Filter>Pawn Includes</Filter>
</None>
<None Include="..\..\plugins\include\time.inc"> <None Include="..\..\plugins\include\time.inc">
<Filter>Pawn Includes</Filter> <Filter>Pawn Includes</Filter>
</None> </None>

View File

@ -230,6 +230,7 @@ Section "MainSection" SEC01
File "installer\files\base\addons\amxmodx\scripting\include\amxconst.inc" File "installer\files\base\addons\amxmodx\scripting\include\amxconst.inc"
File "installer\files\base\addons\amxmodx\scripting\include\amxmisc.inc" File "installer\files\base\addons\amxmodx\scripting\include\amxmisc.inc"
File "installer\files\base\addons\amxmodx\scripting\include\amxmodx.inc" File "installer\files\base\addons\amxmodx\scripting\include\amxmodx.inc"
File "installer\files\base\addons\amxmodx\scripting\include\amxmodx_version.inc"
File "installer\files\base\addons\amxmodx\scripting\include\cellarray.inc" File "installer\files\base\addons\amxmodx\scripting\include\cellarray.inc"
File "installer\files\base\addons\amxmodx\scripting\include\celltrie.inc" File "installer\files\base\addons\amxmodx\scripting\include\celltrie.inc"
File "installer\files\base\addons\amxmodx\scripting\include\core.inc" File "installer\files\base\addons\amxmodx\scripting\include\core.inc"
@ -271,7 +272,6 @@ Section "MainSection" SEC01
File "installer\files\base\addons\amxmodx\scripting\include\sorting.inc" File "installer\files\base\addons\amxmodx\scripting\include\sorting.inc"
File "installer\files\base\addons\amxmodx\scripting\include\sqlx.inc" File "installer\files\base\addons\amxmodx\scripting\include\sqlx.inc"
File "installer\files\base\addons\amxmodx\scripting\include\string.inc" File "installer\files\base\addons\amxmodx\scripting\include\string.inc"
File "installer\files\base\addons\amxmodx\scripting\include\svn_version.inc"
File "installer\files\base\addons\amxmodx\scripting\include\tfcconst.inc" File "installer\files\base\addons\amxmodx\scripting\include\tfcconst.inc"
File "installer\files\base\addons\amxmodx\scripting\include\tfcstats.inc" File "installer\files\base\addons\amxmodx\scripting\include\tfcstats.inc"
File "installer\files\base\addons\amxmodx\scripting\include\tfcx.inc" File "installer\files\base\addons\amxmodx\scripting\include\tfcx.inc"
@ -633,7 +633,6 @@ Section Uninstall
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcstats.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcstats.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcconst.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcconst.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\time.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\time.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\svn_version.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\string.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\string.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sqlx.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sqlx.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sorting.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sorting.inc"
@ -678,6 +677,7 @@ Section Uninstall
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmod.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmod.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmisc.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmisc.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxconst.inc" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxconst.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmodx_version.inc"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\timeleft.sma" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\timeleft.sma"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\telemenu.sma" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\telemenu.sma"
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\statscfg.sma" Delete "$INSTDIR\files\base\addons\amxmodx\scripting\statscfg.sma"

View File

@ -11,7 +11,7 @@
#endif #endif
#define _amxconst_included #define _amxconst_included
#include <svn_version> #include <amxmodx_version>
/** /**
* This is the buffer size AMX Mod X uses internally to retrieve strings from plugins. * This is the buffer size AMX Mod X uses internally to retrieve strings from plugins.

View File

@ -0,0 +1,16 @@
/* AMX Mod X constants
*
* by the AMX Mod X Development Team
* originally developed by OLO
*
* This file is provided as is (no warranties).
*/
#if defined _amxmodx_version_included
#endinput
#endif
#define _amxmodx_version_included
#define AMXX_VERSION 1.83
#define AMXX_VERSION_NUM 183
stock const AMXX_VERSION_STR[] = "1.8.3-manual";

View File

@ -1,19 +0,0 @@
/* AMX Mod X constants
*
* by the AMX Mod X Development Team
* originally developed by OLO
*
* This file is provided as is (no warranties).
*/
#if defined _svnversion_included
#endinput
#endif
#define _svnversion_included
#tryinclude <amxmodx_version>
#if !defined _amxmodx_version_included
#define AMXX_VERSION 1.83
#define AMXX_VERSION_NUM 183
stock const AMXX_VERSION_STR[] = "1.8.3-dev";
#endif

View File

@ -120,7 +120,7 @@ for amxx_file in AMXX.plugins:
# Copy the generated version .inc. # Copy the generated version .inc.
for generated_header in AMXX.generated_headers: for generated_header in AMXX.generated_headers:
if 'inc' in generated_header.path: if 'amxmodx_version.inc' in generated_header.path:
builder.AddCopy(generated_header, folder_map['base/addons/amxmodx/scripting/include']) builder.AddCopy(generated_header, folder_map['base/addons/amxmodx/scripting/include'])
break break
@ -286,7 +286,6 @@ scripting_files = [
'include/newmenus.inc', 'include/newmenus.inc',
'include/sorting.inc', 'include/sorting.inc',
'include/sqlx.inc', 'include/sqlx.inc',
'include/svn_version.inc',
'include/time.inc', 'include/time.inc',
'include/vector.inc', 'include/vector.inc',
] ]

View File

@ -1,6 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
trap "exit" INT trap "exit" INT
if [ ! -d "amxmodx" ]; then
git clone https://github.com/alliedmodders/amxmodx.git
fi
if [ "$1" != "--no-mysql" ]; then
ismac=0 ismac=0
iswin=0 iswin=0
@ -15,10 +20,6 @@ elif [ `uname` != "Linux" ] && [ -n "${COMSPEC:+1}" ]; then
decomp=unzip decomp=unzip
fi fi
if [ ! -d "amxmodx" ]; then
git clone https://github.com/alliedmodders/amxmodx.git
fi
if [ $ismac -eq 1 ]; then if [ $ismac -eq 1 ]; then
mysqlver=mysql-5.5.28-osx10.5-x86 mysqlver=mysql-5.5.28-osx10.5-x86
mysqlurl=http://cdn.mysql.com/archives/mysql-5.5/$mysqlver.$archive_ext mysqlurl=http://cdn.mysql.com/archives/mysql-5.5/$mysqlver.$archive_ext
@ -45,6 +46,7 @@ if [ ! -d "mysql-5.0" ]; then
mv $mysqlver mysql-5.0 mv $mysqlver mysql-5.0
rm mysql.$archive_ext rm mysql.$archive_ext
fi fi
fi
checkout () checkout ()
{ {