Fixed file naming in build script.
This commit is contained in:
parent
0bd4346c1d
commit
2edcfe7589
6
build.sh
6
build.sh
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
RELEASEDIR=release
|
RELEASEDIR=release
|
||||||
BUILDDIR=build
|
BUILDDIR=build
|
||||||
VERSION=$(hg id -b)
|
VERSION="zombiereloaded-3.0-dev"
|
||||||
REVISION=$(hg id -n)
|
REVISION=$(hg id -n)
|
||||||
ZIPFILE=$VERSION-$REVISION.zip
|
ZIPFILE=$VERSION-r$REVISION.zip
|
||||||
|
|
||||||
PLUGINFILES="cstrike/*"
|
PLUGINFILES="cstrike/*"
|
||||||
DOCS="docs/*"
|
DOCS="docs/*"
|
||||||
|
@ -43,7 +43,7 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ZIPFILE=$VERSION-patch-$PATCHREV-$REVISION.zip
|
ZIPFILE=$VERSION-patch-r$PATCHREV-r$REVISION.zip
|
||||||
else
|
else
|
||||||
echo "Missing base revision number. Usage: build.sh patch <base rev>"
|
echo "Missing base revision number. Usage: build.sh patch <base rev>"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -4,12 +4,23 @@ on info from a automatically generated file (hgversion.h.inc).
|
||||||
There's a script that generate this file and must be executed every time before
|
There's a script that generate this file and must be executed every time before
|
||||||
compiling:
|
compiling:
|
||||||
|
|
||||||
updateversion.sh
|
Linux: updateversion.sh
|
||||||
updateversion.bat (Executes updateversion.sh using Cygwin)
|
Windows: updateversion.bat (Executes updateversion.sh using Cygwin)
|
||||||
|
|
||||||
Mercurial (or TortoiseHG) must be installed for this script to work. Use the
|
Mercurial (or TortoiseHG) must be installed for this script to work. If you
|
||||||
makefile to compile since that one will do most of the work. Make sure you
|
don't have Mercurial, there's an option to disable version info. In
|
||||||
clean any existing builds before compiling:
|
zombiereloaded.sp there's a line like this:
|
||||||
|
|
||||||
|
#define ADD_VERSION_INFO
|
||||||
|
|
||||||
|
To disable it, comment that line like this:
|
||||||
|
|
||||||
|
//#define ADD_VERSION_INFO
|
||||||
|
|
||||||
|
Then you should be able to compile without hgversion.h.inc.
|
||||||
|
|
||||||
|
On linux use the makefile to compile since that one will do most of the work.
|
||||||
|
Make sure you clean any existing builds before compiling:
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
|
@ -17,14 +28,3 @@ clean any existing builds before compiling:
|
||||||
For compiling on windows, run:
|
For compiling on windows, run:
|
||||||
|
|
||||||
compile.bat
|
compile.bat
|
||||||
|
|
||||||
If you don't have Mercurial, there's an option to disable this feature. In
|
|
||||||
zombiereloaded.sp there's a line like this:
|
|
||||||
|
|
||||||
#define ADD_VERSION_INFO 1
|
|
||||||
|
|
||||||
To disable it, comment that line like this:
|
|
||||||
|
|
||||||
//#define ADD_VERSION_INFO 1
|
|
||||||
|
|
||||||
Then you should be able to compile without hgversion.h.inc.
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user