mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
synthesis.sh: package some Lunatic test files when attempting to BUILD_LUNATIC.
git-svn-id: https://svn.eduke32.com/eduke32@4022 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9acb219721
commit
f2e92a7ea3
1 changed files with 21 additions and 2 deletions
|
@ -101,7 +101,9 @@ then
|
|||
echo mv -f mapster32$exe "$package/mapster32.debug$exe"
|
||||
mv -f mapster32$exe "$package/mapster32.debug$exe"
|
||||
|
||||
if [ -n "`echo $headlog | grep BUILD_LUNATIC`" ]; then
|
||||
BUILD_LUNATIC="`echo $headlog | grep BUILD_LUNATIC`"
|
||||
|
||||
if [ -n "$BUILD_LUNATIC" ]; then
|
||||
# clean the tree and build Lunatic (pre-)release next
|
||||
echo "${make[@]}" LUNATIC=1 $clean all
|
||||
"${make[@]}" LUNATIC=1 $clean all
|
||||
|
@ -146,11 +148,28 @@ then
|
|||
|
||||
# create the output directory
|
||||
mkdir $output/$date-$head
|
||||
|
||||
|
||||
# package the binary snapshot
|
||||
cd $package
|
||||
|
||||
# Package some Lunatic test and demo files.
|
||||
if [ -n "$BUILD_LUNATIC" ]; then
|
||||
mkdir -p lunatic/test
|
||||
cp $top/$source/source/lunatic/test.lua lunatic
|
||||
cp $top/$source/source/lunatic/test/test_{bitar,geom,rotspr}.lua lunatic/test
|
||||
cp $top/$source/source/lunatic/test/{delmusicsfx,helixspawner}.lua lunatic/test
|
||||
fi
|
||||
|
||||
echo zip -r -y -9 $output/$date-$head/${basename}_${platform}_$date-$head.zip * -x "*.svn*"
|
||||
zip -r -y -9 $output/$date-$head/${basename}_${platform}_$date-$head.zip * -x "*.svn*"
|
||||
|
||||
# Remove the packaged Lunatic test/demo files.
|
||||
if [ -n "$BUILD_LUNATIC" ]; then
|
||||
rm lunatic/test/*.lua lunatic/test.lua
|
||||
rmdir lunatic/test
|
||||
rmdir lunatic
|
||||
fi
|
||||
|
||||
cd $top/$source
|
||||
|
||||
# hack to restore [e]obj/keep.me
|
||||
|
|
Loading…
Reference in a new issue