Skip to content
Snippets Groups Projects
Commit 5e7952e3 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1470 51575b47-30f0-44d4-a5cc-537603b46e54
parent 35475327
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# Check validity
find game/ bootstrap/ -name '*lua' | xargs -n1 luac -p
if test $? -ne 0 ; then
echo "Invalid lua files!"
exit 1
fi
ver="$1"
tomename="$2"
tename="$3"
rm -rf tmp
mkdir tmp
cd tmp
mkdir t-engine4-windows-"$ver"
mkdir t-engine4-src-"$ver"
mkdir t-engine4-linux32-"$ver"
# src
echo "******************** Src"
cd t-engine4-src-"$ver"
cp -a ../../bootstrap/ ../../game/ ../../C* ../../premake4.lua ../../src/ .
find . -name '*~' -or -name '.svn' | xargs rm -rf
cd ..
tar cvjf t-engine4-src-"$ver".tar.bz2 t-engine4-src-"$ver"
# windows
echo "******************** Windows"
cd t-engine4-windows-"$ver"
cp -a ../../bootstrap/ ../../game/ ../../C* ../../dlls/* .
find . -name '*~' -or -name '.svn' | xargs rm -rf
cd ..
zip -r -9 t-engine4-windows-"$ver".zip t-engine4-windows-"$ver"
# linux 32
echo "******************** linux32"
cd t-engine4-linux32-"$ver"
cp -a ../../bootstrap/ ../../game/ ../../C* ../../linux-bin/* .
find . -name '*~' -or -name '.svn' | xargs rm -rf
cd ..
tar -cvjf t-engine4-linux32-"$ver".tar.bz2 t-engine4-linux32-"$ver"
#### Music less
# src
echo "******************** Src"
cd t-engine4-src-"$ver"
rm game/engines/default/data/music/*
rm game/modules/tome/data/music/*
cd ..
tar cvjf t-engine4-src-"$ver"-nomusic.tar.bz2 t-engine4-src-"$ver"
# windows
echo "******************** Windows"
cd t-engine4-windows-"$ver"
rm game/engines/default/data/music/*
rm game/modules/tome/data/music/*
cd ..
zip -r -9 t-engine4-windows-"$ver"-nomusic.zip t-engine4-windows-"$ver"
# linux 32
echo "******************** linux32"
cd t-engine4-linux32-"$ver"
rm game/engines/default/data/music/*
rm game/modules/tome/data/music/*
cd ..
tar -cvjf t-engine4-linux32-"$ver"-nomusic.tar.bz2 t-engine4-linux32-"$ver"
cp *zip *bz2 /var/www/te4.org/htdocs/dl/t-engine
########## Announce
echo "***************** FOR tome.te4.org"
echo "== $tomename =="
echo "* [http://te4.org/dl/t-engine/t-engine4-windows-$ver.zip Windows] ([http://te4.org/dl/t-engine/t-engine4-windows-$ver-nomusic.zip Without music])"
echo "* [http://te4.org/dl/t-engine/t-engine4-src-$ver.tar.bz2 Source] ([http://te4.org/dl/t-engine/t-engine4-src-$ver-nomusic.tar.bz2 Without music])"
echo "* [http://te4.org/dl/t-engine/t-engine4-linux32-$ver.tar.bz2 Linux] ([http://te4.org/dl/t-engine/t-engine4-linux32-$ver-nomusic.tar.bz2 Without music])"
echo "* Mac OSX: not yet available, should be out in a few days (check out the blog)"
echo
echo
echo "***************** FOR te4.org"
echo "== $tename =="
echo "* [/dl/t-engine/t-engine4-windows-$ver.zip Windows] ([/dl/t-engine/t-engine4-windows-$ver-nomusic.zip No music])"
echo "* [/dl/t-engine/t-engine4-src-$ver.tar.bz2 Source] ([/dl/t-engine/t-engine4-src-$ver-nomusic.tar.bz2 No music])"
echo "* [/dl/t-engine/t-engine4-linux32-$ver.tar.bz2 Linux] ([/dl/t-engine/t-engine4-linux32-$ver-nomusic.tar.bz2 Without music])"
echo "* Mac OSX: not yet available, should be out in a few days (check out the blog)"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment