;;
# release building goes here
- release-mkdir)
- mkdir -p Xonotic/"$1"
- ;;
release-prepare)
-#"$SELF" each git clean -fxd
+ #"$SELF" each git clean -fxd
+ rm -rf Xonotic
mkdir -p Xonotic
- "$SELF" release-copy Docs/
- "$SELF" release-copy misc/
- "$SELF" release-copy server/
- "$SELF" release-copy xonotic-linux-glx.sh
- "$SELF" release-copy xonotic-linux-sdl.sh
- "$SELF" release-mkdir data
- "$SELF" release-mkdir fteqcc
- ;;
- release-copy)
- rsync --exclude=.git -vaSHPAX "$1" Xonotic/"$1"
+ git archive --format=tar HEAD -- Docs misc server xonotic-linux-glx.sh xonotic-linux-sdl.sh misc/buildfiles | {
+ cd Xonotic
+ mkdir data fteqcc
+ tar xvf -
+ rm -rf misc/builddeps
+ mv misc/buildfiles/win32/* .
+ mv misc/buildfiles/win64/* .
+ mv misc/buildfiles/osx/* .
+ rm -rf misc/buildfiles
+ }
;;
release-compile-run)
host=$1
"$SELF" release-compile-run "xonotic-build-$suffix" /tmp/Darkplaces.build."$suffix" "$darkplaces_maketargets" "$makeflags" "fteqcc" "$darkplaces_files"
;;
release-engine-win32)
- rsync --exclude=.git -vaSHPAX Xonotic/misc/buildfiles/win32/* Xonotic/
"$SELF" release-compile win32 \
'"DP_MAKE_TARGET=mingw CC="i586-mingw32msvc-gcc -Wl,--dynamicbase -Wl,--nxcompat -g -DSUPPORTDIRECTX -DUSE_WSPIAPI_H -I$HOME/dp.win32/include -L$HOME/dp.win32/lib" WINDRES="i586-mingw32msvc-windres" SDL_CONFIG="$HOME/dp.win32/bin/sdl-config"' \
win 'fteqcc.exe:Xonotic/fteqcc/fteqcc.exe' \
debug 'darkplaces.exe:xonotic.exe darkplaces-sdl.exe:xonotic-sdl.exe darkplaces-dedicated.exe:xonotic-dedicated.exe'
;;
release-engine-win64)
- rsync --exclude=.git -vaSHPAX Xonotic/misc/buildfiles/win64/* Xonotic/
"$SELF" release-compile win32 \
- '"DP_MAKE_TARGET=mingw CC="amd64-mingw32msvc-gcc -Wl,--dynamicbase -Wl,--nxcompat -g -DSUPPORTDIRECTX -DUSE_WSPIAPI_H -I$HOME/dp.win64/include -L$HOME/dp.win64/lib" WINDRES="amd64-mingw32msvc-windres" SDL_CONFIG="$HOME/dp.win64/bin/sdl-config"' \
+ '"DP_MAKE_TARGET=mingw CC="amd64-mingw32msvc-gcc -Wl,--dynamicbase -Wl,--nxcompat -g -DSUPPORTDIRECTX -DUSE_WSPIAPI_H -I$HOME/dp.win64/include -L$HOME/dp.win64/lib" WINDRES="amd64-mingw32msvc-windres" SDL_CONFIG="$HOME/dp.win64/bin/sdl-config" LDFLAGS_WINCOMMON=""' \
win 'fteqcc.exe:Xonotic/fteqcc/fteqcc-64.exe' \
debug 'darkplaces.exe:xonotic-64.exe darkplaces-sdl.exe:xonotic-sdl-64.exe darkplaces-dedicated.exe:xonotic-dedicated-64.exe'
;;
release-engine-osx)
- rsync --exclude=.git -vaSHPAX Xonotic/misc/buildfiles/osx/* Xonotic/
"$SELF" release-compile osx \
'CC="gcc -g -arch i386 -arch ppc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I$HOME/dp.osx/include -L$HOME/dp.osx/lib"' \
all 'fteqcc.bin:Xonotic/fteqcc/fteqcc.osx' \
# version numnber and stuff like that
;;
release-qc)
- verbose make -C Xonotic/data/xonotic-data.pk3dir FTEQCC="$d0/Xonotic/fteqcc/fteqcc.linux32" FTEQCCFLAGS_WATERMARK=
+ verbose make -C data/xonotic-data.pk3dir FTEQCC="$d0/Xonotic/fteqcc/fteqcc.linux32" FTEQCCFLAGS_WATERMARK=
;;
release-buildpk3-transform-raw)
dir=$1
;;
esac
rm -rf Xonotic/temp
- rsync --exclude=.git -vaSHPAX "$src"/ "Xonotic/temp"
+ mkdir -p Xonotic/temp
+ {
+ cd "$src"
+ git archive --format=tar HEAD
+ } | {
+ cd Xonotic/temp
+ tar xvf -
+ }
+ if [ x"$src" = x"data/xonotic-data.pk3dir" ]; then
+ cp "$src"/progs.dat Xonotic/temp/
+ cp "$src"/csprogs.dat Xonotic/temp/
+ cp "$src"/menu.dat Xonotic/temp/
+ fi
"$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
cd Xonotic/temp
zip -9r "../../$dst" . ########### 7za a -tzip -mx=9 "../../$dst" .
;;
release)
"$SELF" release-prepare
+ "$SELF" release-engine
"$SELF" release-maps
"$SELF" release-finish
"$SELF" release-qc
"$SELF" release-pack
- "$SELF" release-engine
;;
+
*)
echo "Usage:"
echo " $SELF pull"