# TODO
run_game(){
cd $_linux_folder
- ./skaterift
+ ./skaterift --samples=4
cd ./../
}
}
link_content(){
- ln -sr bin/content/textures/ $1/textures
- ln -sr bin/content/models/ $1/models
- ln -sr bin/content/sound/ $1/sound
+ unlink $1/textures
+ unlink $1/models
+ unlink $1/sound
+
+ ln -srf bin/content/textures $1/textures
+ ln -srf bin/content/models $1/models
+ ln -srf bin/content/sound $1/sound
}
TIMESTAMP=`date +%Y-%m-%d_%H-%M-%S`
run_command game
run_command server
;;
- distribution)
+ disb)
mkdir -p ./dist
run_command release
run_command tools
run_command content
run_command textures
run_command server
+ ;;
+ distribution)
titleit "Compressing distributions"
logit "Linux"
tar -chzvf dist/skaterift_linux__$TIMESTAMP.tar.gz bin/linux/
tar -chzvf dist/skaterift_server__$TIMESTAMP.tar.gz bin/linux_server
logit "Windows"
tar -chzvf dist/skaterift_win32__$TIMESTAMP.tar.gz bin/win32/
+ zip -r9 dist/skaterift_win32__$TIMESTAMP.zip bin/win32/
;;
# Runners
# ========================================================================