date +%Y%m%d > Xonotic/stamp.txt
git archive --format=tar HEAD -- Docs misc server xonotic-linux-glx.sh xonotic-linux-sdl.sh misc/buildfiles | {
cd Xonotic
- mkdir data fteqcc darkplaces-src fteqcc-src
+ mkdir data fteqcc source source/darkplaces source/fteqcc
tar xvf -
rm -rf misc/builddeps
mv misc/buildfiles/win32/* . || true
cd darkplaces
git archive --format=tar HEAD
} | {
- cd Xonotic/darkplaces-src
+ cd Xonotic/source/darkplaces
tar xvf -
}
{
cd fteqcc
git archive --format=tar HEAD
} | {
- cd Xonotic/fteqcc-src
+ cd Xonotic/source/fteqcc
+ tar xvf -
+ }
+ {
+ cd data/xonotic-data.pk3dir
+ git archive --format=tar HEAD -- qcsrc
+ } | {
+ cd Xonotic/source
tar xvf -
}
;;
fteqcc_files=$4
darkplaces_maketargets=$5
darkplaces_files=$6
- "$SELF" release-compile-run "xonotic-build-$suffix" /tmp/fteqcc.build."$suffix" "$fteqcc_maketargets" "$makeflags" "Xonotic/fteqcc-src" "$fteqcc_files"
- "$SELF" release-compile-run "xonotic-build-$suffix" /tmp/Darkplaces.build."$suffix" "$darkplaces_maketargets" "$makeflags" "Xonotic/darkplaces-src" "$darkplaces_files"
+ "$SELF" release-compile-run "xonotic-build-$suffix" /tmp/fteqcc.build."$suffix" "$fteqcc_maketargets" "$makeflags" "Xonotic/source/fteqcc" "$fteqcc_files"
+ "$SELF" release-compile-run "xonotic-build-$suffix" /tmp/Darkplaces.build."$suffix" "$darkplaces_maketargets" "$makeflags" "Xonotic/source/darkplaces" "$darkplaces_files"
;;
release-engine-win32)
"$SELF" release-compile win32 \
cp "$src"/progs.dat Xonotic/temp/
cp "$src"/csprogs.dat Xonotic/temp/
cp "$src"/menu.dat Xonotic/temp/
- fi
- if [ x"$src" = x"data/xonotic-maps.pk3dir" ]; then
- for X in data/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
- if [ -f "$X" ]; then
- (
- cd Xonotic/temp
- unzip ../../"$X"
- )
- fi
- done
- fi
- if [ -f "defaultXonotic.cfg" ]; then
+ rm -rf qcsrc
gv=`grep "^gameversion " "defaultXonotic.cfg" | awk '{ print $2 }'`
major=$(($gv / 10000))
minor=$(($gv / 100 - $major * 100))
" defaultXonotic.cfg
echo "r_texture_dds_load 1" >> quake.rc
fi
+ if [ x"$src" = x"data/xonotic-maps.pk3dir" ]; then
+ for X in data/*-????????????????????????????????????????-????????????????????????????????????????.pk3; do
+ if [ -f "$X" ]; then
+ (
+ cd Xonotic/temp
+ unzip ../../"$X"
+ )
+ fi
+ done
+ fi
"$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
cd Xonotic/temp
zip -9yr "../../$dst" . ########### 7za a -tzip -mx=9 "../../$dst" .
stamp=`cat Xonotic/stamp.txt`
zip -9yr Xonotic-common.zip \
Xonotic/*.dll \
- Xonotic/darkplaces-src \
+ Xonotic/source \
Xonotic/Docs \
- Xonotic/fteqcc-src \
Xonotic/misc \
Xonotic/fteqcc \
Xonotic/server \