mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
osxbuild.sh:
- Generate changelog and add to zip. - Increase minimum version to Leopard 10.5. - Fix typo in usage printout. git-svn-id: https://svn.eduke32.com/eduke32@2455 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8f8bb68ace
commit
7f213b1951
1 changed files with 22 additions and 6 deletions
|
@ -18,12 +18,10 @@ fi
|
||||||
# Detect and account for OS X version:
|
# Detect and account for OS X version:
|
||||||
darwinversion=`uname -r | cut -d . -f 1`
|
darwinversion=`uname -r | cut -d . -f 1`
|
||||||
|
|
||||||
if [ `expr $darwinversion \< 8` == 1 ]; then
|
|
||||||
echo OS X 10.4 is the minimum requirement for building.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [ `expr $darwinversion \< 9` == 1 ]; then
|
if [ `expr $darwinversion \< 9` == 1 ]; then
|
||||||
build64=0
|
build64=0
|
||||||
|
echo OS X 10.4 is the minimum requirement for building.
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ `expr $darwinversion \> 10` == 1 ]; then
|
if [ `expr $darwinversion \> 10` == 1 ]; then
|
||||||
buildppc=0
|
buildppc=0
|
||||||
|
@ -51,7 +49,7 @@ for i in $*; do
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo usage: osxbuild [onlyzip] [noppc] [no86] [no64] [--debug=\<0|1\>]
|
echo usage: osxbuild [onlyzip] [noppc] [no86] [no64] [--debug=\<0\|1\>]
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -168,7 +166,7 @@ if [ $builddebug == 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Begin assembling archive contents:
|
# Begin assembling archive contents:
|
||||||
arcontents="README.OSX"
|
arcontents="README.OSX Changelog.txt"
|
||||||
|
|
||||||
echo Creating fat binaries.
|
echo Creating fat binaries.
|
||||||
success=0
|
success=0
|
||||||
|
@ -201,6 +199,24 @@ if [ $success == 1 ]; then
|
||||||
echo "The 64-bit build in this archive has LibVPX (http://www.webmproject.org/code/)" >> README.OSX
|
echo "The 64-bit build in this archive has LibVPX (http://www.webmproject.org/code/)" >> README.OSX
|
||||||
echo "from MacPorts (http://www.macports.org/) statically linked into it." >> README.OSX
|
echo "from MacPorts (http://www.macports.org/) statically linked into it." >> README.OSX
|
||||||
|
|
||||||
|
# Generate Changelog:
|
||||||
|
lastrevision=`ls -A1 eduke32-osx* | tail -n1 | cut -d- -f3 | cut -d. -f1`
|
||||||
|
|
||||||
|
if [ -z $lastrevision ]; then
|
||||||
|
let lastrevision=rev-1
|
||||||
|
elif [ $lastrevision -lt $rev ]; then
|
||||||
|
let lastrevision+=1
|
||||||
|
else
|
||||||
|
let lastrevision=rev-1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$vc" == "svn" ]; then
|
||||||
|
svn log -r $rev:$lastrevision > Changelog.txt
|
||||||
|
elif [ "$vc" == "git" ]; then
|
||||||
|
git svn log -r $rev:$lastrevision > Changelog.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Package
|
||||||
arfilename="eduke32-osx-$rev.zip"
|
arfilename="eduke32-osx-$rev.zip"
|
||||||
rm -f "$arfilename"
|
rm -f "$arfilename"
|
||||||
zip -r -y "$arfilename" $arcontents -x "*.svn*" "*.git*"
|
zip -r -y "$arfilename" $arcontents -x "*.svn*" "*.git*"
|
||||||
|
|
Loading…
Reference in a new issue