mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 09:20:51 +00:00
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:
parent
34a965721b
commit
298da67e63
1 changed files with 48 additions and 23 deletions
|
@ -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,8 +368,10 @@ fi
|
|||
|
||||
# Begin assembling archive contents:
|
||||
echo Creating fat binaries.
|
||||
success=0
|
||||
for i in {eduke32,mapster32}{.debug,}; do
|
||||
|
||||
success=$dummy
|
||||
if [ $dummy == 0 ]; then
|
||||
for i in {eduke32,mapster32}{.debug,}; do
|
||||
binaries=
|
||||
for j in ${i}.{x86,x64,ppc}; do
|
||||
if [ -f "$j" ]; then
|
||||
|
@ -367,7 +387,8 @@ for i in {eduke32,mapster32}{.debug,}; do
|
|||
cp -f $i "$app/Contents/MacOS/${i%.debug}"
|
||||
mv -f "$app" "$package/"
|
||||
fi
|
||||
done
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue