mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
osxbuild.sh: Add 'clean' preset, deleting files missed by 'make veryclean'.
git-svn-id: https://svn.eduke32.com/eduke32@3692 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e64ecfbf4f
commit
d30faf8950
1 changed files with 22 additions and 2 deletions
|
@ -16,6 +16,7 @@ buildrelease=1
|
||||||
pack=1
|
pack=1
|
||||||
iamhelix=0
|
iamhelix=0
|
||||||
dummy=0
|
dummy=0
|
||||||
|
doclean=0
|
||||||
package=package
|
package=package
|
||||||
lastrevision=
|
lastrevision=
|
||||||
|
|
||||||
|
@ -84,6 +85,17 @@ for i in $*; do
|
||||||
pack=0
|
pack=0
|
||||||
dummy=1
|
dummy=1
|
||||||
;;
|
;;
|
||||||
|
clean)
|
||||||
|
buildppc=0
|
||||||
|
build86=0
|
||||||
|
build64=0
|
||||||
|
buildmain=0
|
||||||
|
buildtools=0
|
||||||
|
builddebug=0
|
||||||
|
buildrelease=0
|
||||||
|
pack=0
|
||||||
|
doclean=1
|
||||||
|
;;
|
||||||
# For the convenience of universal distributors:
|
# For the convenience of universal distributors:
|
||||||
dist)
|
dist)
|
||||||
buildppc=1
|
buildppc=1
|
||||||
|
@ -229,6 +241,12 @@ if [ $buildppc == 1 ]; then
|
||||||
commonargs="$commonargs DARWIN9=1"
|
commonargs="$commonargs DARWIN9=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $doclean == 1 ]; then
|
||||||
|
cd build
|
||||||
|
rm -f *{.x86,.x64,.ppc}
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
# Building the buildtools:
|
# Building the buildtools:
|
||||||
if [ $buildtools$installtools != 00 ] && [ -d "build" ]; then
|
if [ $buildtools$installtools != 00 ] && [ -d "build" ]; then
|
||||||
cd build
|
cd build
|
||||||
|
@ -312,11 +330,13 @@ if [ $buildtools$installtools != 00 ] && [ -d "build" ]; then
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The build process itself:
|
if [ $doclean == 1 ] || [ $buildmain == 1 ]; then
|
||||||
if [ $buildmain == 1 ]; then
|
|
||||||
rm -f {eduke32,mapster32}{.debug,}{.x86,.x64,.ppc,}
|
rm -f {eduke32,mapster32}{.debug,}{.x86,.x64,.ppc,}
|
||||||
rm -rf {$package/,}{EDuke32,Mapster32}{.debug,}.app
|
rm -rf {$package/,}{EDuke32,Mapster32}{.debug,}.app
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The build process itself:
|
||||||
|
if [ $buildmain == 1 ]; then
|
||||||
if [ $iamhelix == 1 ]; then
|
if [ $iamhelix == 1 ]; then
|
||||||
makecmd="make -j 2"
|
makecmd="make -j 2"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue