mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Adds a source package exception list to remove useless files before packaging.
git-svn-id: https://svn.eduke32.com/eduke32@1518 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1c9540ada0
commit
bd8e26175e
1 changed files with 14 additions and 8 deletions
|
@ -1,14 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# some paths
|
# some paths
|
||||||
top=/home/pgriffais/src/eduke32
|
top=/home/plagman/src/eduke32
|
||||||
source=$top/polymer/eduke32
|
source=polymer/eduke32
|
||||||
output=/home/pgriffais/src/synthesis/output
|
output=/var/www/dukeworld.duke4.net/eduke32/synthesis
|
||||||
make=( make PLATFORM=WINDOWS CC='wine gcc' CXX='wine g++' AS='wine nasm' RC='wine windres' STRIP='wine strip' AR='wine ar' RANLIB='wine ranlib' PRETTY_OUTPUT=0 )
|
make=( make PLATFORM=WINDOWS CC='wine gcc' CXX='wine g++' AS='wine nasm' RC='wine windres' STRIP='wine strip' AR='wine ar' RANLIB='wine ranlib' PRETTY_OUTPUT=0 )
|
||||||
clean=veryclean
|
clean=veryclean
|
||||||
# the following file paths are relative to $source
|
# the following file paths are relative to $source
|
||||||
targets=( eduke32.exe mapster32.exe )
|
targets=( eduke32.exe mapster32.exe )
|
||||||
packaged=( eduke32.exe mapster32.exe names.h tiles.cfg buildlic.txt GNU.TXT m32help.hlp ror.map a.m32 )
|
bin_packaged=( eduke32.exe mapster32.exe names.h tiles.cfg buildlic.txt GNU.TXT m32help.hlp ror.map a.m32 )
|
||||||
|
not_src_packaged=( rsrc/game2.psd rsrc/game3.psd source/jaudiolib/third-party/vorbis.framework/Versions/A/vorbis Apple )
|
||||||
|
|
||||||
|
|
||||||
# some variables
|
# some variables
|
||||||
|
@ -46,7 +47,7 @@ fi
|
||||||
if [ $dobuild ]
|
if [ $dobuild ]
|
||||||
then
|
then
|
||||||
echo "Launching a build..."
|
echo "Launching a build..."
|
||||||
cd $source
|
cd $top/$source
|
||||||
# clean the tree
|
# clean the tree
|
||||||
echo "${make[@]}" $clean
|
echo "${make[@]}" $clean
|
||||||
"${make[@]}" $clean
|
"${make[@]}" $clean
|
||||||
|
@ -71,8 +72,8 @@ then
|
||||||
# create the output directory
|
# create the output directory
|
||||||
mkdir $output/$date-$head
|
mkdir $output/$date-$head
|
||||||
# package the binary snapshot
|
# package the binary snapshot
|
||||||
echo zip $output/$date-$head/eduke32_win32_$date-$head.zip ${packaged[@]}
|
echo zip $output/$date-$head/eduke32_win32_$date-$head.zip ${bin_packaged[@]}
|
||||||
zip $output/$date-$head/eduke32_win32_$date-$head.zip ${packaged[@]}
|
zip $output/$date-$head/eduke32_win32_$date-$head.zip ${bin_packaged[@]}
|
||||||
# hack to restore [e]obj/keep.me
|
# hack to restore [e]obj/keep.me
|
||||||
echo svn update -r $head
|
echo svn update -r $head
|
||||||
svn update -r $head
|
svn update -r $head
|
||||||
|
@ -81,13 +82,18 @@ then
|
||||||
echo svn export . $output/$date-$head/eduke32_$date-$head
|
echo svn export . $output/$date-$head/eduke32_$date-$head
|
||||||
# package the source
|
# package the source
|
||||||
cd $output/$date-$head
|
cd $output/$date-$head
|
||||||
|
# first remove the unnecessary files
|
||||||
|
for i in "${not_src_packaged[@]}"; do
|
||||||
|
echo rm -r eduke32_$date-$head/$i
|
||||||
|
rm -r eduke32_$date-$head/$i
|
||||||
|
done
|
||||||
echo tar cvzf eduke32_src_$date-$head.tar.gz eduke32_$date-$head
|
echo tar cvzf eduke32_src_$date-$head.tar.gz eduke32_$date-$head
|
||||||
tar cvzf eduke32_src_$date-$head.tar.gz eduke32_$date-$head
|
tar cvzf eduke32_src_$date-$head.tar.gz eduke32_$date-$head
|
||||||
rm -r eduke32_$date-$head
|
rm -r eduke32_$date-$head
|
||||||
# output the changelog since last snapshot in the output directory
|
# output the changelog since last snapshot in the output directory
|
||||||
if [ $lastrevision ]
|
if [ $lastrevision ]
|
||||||
then
|
then
|
||||||
cd $source
|
cd $top/$source
|
||||||
svn log -r $head:$lastrevision > $output/$date-$head/ChangeLog.txt
|
svn log -r $head:$lastrevision > $output/$date-$head/ChangeLog.txt
|
||||||
fi
|
fi
|
||||||
# hack for our served directory structure
|
# hack for our served directory structure
|
||||||
|
|
Loading…
Reference in a new issue