osxbuild.sh: new option --lastrev, 'dummyhelix' preset.

git-svn-id: https://svn.eduke32.com/eduke32@3690 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-04-17 20:34:45 +00:00
parent 34a965721b
commit 298da67e63

View file

@ -15,7 +15,9 @@ builddebug=0
buildrelease=1
pack=1
iamhelix=0
dummy=0
package=package
lastrevision=
# Enforce OS:
if [ `uname -s` != Darwin ]; then
@ -70,6 +72,18 @@ for i in $*; do
buildrelease=0
pack=1
;;
dummyhelix)
iamhelix=1
buildppc=0
build86=0
build64=0
buildmain=0
buildtools=0
builddebug=0
buildrelease=0
pack=0
dummy=1
;;
# For the convenience of universal distributors:
dist)
buildppc=1
@ -136,6 +150,10 @@ for i in $*; do
pack=${i#*=}
;;
--lastrev=*)
lastrevision=${i#*=}
;;
*)
echo "usage: ./osxbuild.sh [options]"
echo "options:"
@ -350,7 +368,9 @@ fi
# Begin assembling archive contents:
echo Creating fat binaries.
success=0
success=$dummy
if [ $dummy == 0 ]; then
for i in {eduke32,mapster32}{.debug,}; do
binaries=
for j in ${i}.{x86,x64,ppc}; do
@ -368,6 +388,7 @@ for i in {eduke32,mapster32}{.debug,}; do
mv -f "$app" "$package/"
fi
done
fi
# Almost done...
if [ $success == 1 ]; then
@ -386,6 +407,7 @@ if [ $success == 1 ]; then
echo "LibPNG from Fink (http://www.finkproject.org/) statically linked into it." >> README.OSX
# Generate Changelog:
if [ -z $lastrevision ]; then
lastrevision=$(ls -A1 eduke32-osx* | tail -n1 | cut -d- -f3 | cut -d. -f1)
if [ -z $lastrevision ]; then
@ -395,6 +417,9 @@ if [ $success == 1 ]; then
else
let lastrevision=rev-1
fi
fi
echo "Using r$lastrevision as last revision for change log"
if [ "$vc" == "svn" ]; then
svn log -r $rev:$lastrevision > Changelog.txt