ok
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant@1 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
38
setup/linux/setup_image/setup.data/config.games.sh
Normal file
38
setup/linux/setup_image/setup.data/config.games.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Script for generating .game files
|
||||
|
||||
# generate game support files
|
||||
# Expects params (game, game path_prefix)
|
||||
|
||||
exec >/dev/tty
|
||||
|
||||
if [ $# -lt 2 ] ; then
|
||||
echo "Incorrect number of params to GenGameFiles";
|
||||
return;
|
||||
fi
|
||||
|
||||
# NOTE: the naming of the vars here doesn't follow attributes names in XML, it can be confusing
|
||||
game=$1;
|
||||
INPUT_FILE="games/$game.game";
|
||||
game_engine=`grep "enginepath_linux=" $INPUT_FILE | awk -F"\"" '{print $2 }'`
|
||||
game_engine_path=$SETUP_COMPONENT_PATH;
|
||||
game_tools=$2;
|
||||
OUT_FILE="$game_tools/games/$game.game";
|
||||
|
||||
echo -e "Generating game file '$OUT_FILE' from '$INPUT_FILE' with the following values...";
|
||||
echo -e "\tGame :\t $game";
|
||||
echo -e "\tGame Engine :\t $game_engine_path/$game_engine";
|
||||
echo -e "\tGame Tools :\t $game_tools";
|
||||
|
||||
if [ -f "$OUT_FILE" ] ; then
|
||||
rm -f $OUT_FILE;
|
||||
fi
|
||||
|
||||
if [ ! -d "$game_tools/games" ] ; then
|
||||
mkdir "$game_tools/games";
|
||||
fi
|
||||
|
||||
sed -e 's!enginepath_linux=\".*.\"!enginepath_linux=\"'$game_engine_path'\"\n gametools=\"'$game_tools/$game'\"!g' <$INPUT_FILE >$OUT_FILE
|
||||
|
||||
exit 0;
|
||||
15
setup/linux/setup_image/setup.data/config.sh.in
Normal file
15
setup/linux/setup_image/setup.data/config.sh.in
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Use this script to customize the installer bootstrap script
|
||||
#
|
||||
|
||||
# override some defaults
|
||||
|
||||
# try to get root prior to running setup?
|
||||
# 0: no
|
||||
# 1: prompt, but run anyway if fails
|
||||
# 2: require, abort if root fails
|
||||
ifdef(`M4_OSX', `GET_ROOT=2')
|
||||
|
||||
FATAL_ERROR="Please report to http://zerowing.idsoftware.com/bugzilla/"
|
||||
|
||||
#XSU_ICON="-i icon.xpm"
|
||||
64
setup/linux/setup_image/setup.data/postinstall.sh.in
Normal file
64
setup/linux/setup_image/setup.data/postinstall.sh.in
Normal file
@@ -0,0 +1,64 @@
|
||||
dnl `uname -m` quoting is a nightmare
|
||||
dnl <sander> TTimo: You could do: `uname -a`
|
||||
changequote([, ])
|
||||
|
||||
#!/bin/sh
|
||||
# post installation script, finalize everything
|
||||
|
||||
# The install path is the first argument of the script
|
||||
install_path="$1"
|
||||
|
||||
# Return the appropriate architecture string
|
||||
function DetectARCH {
|
||||
status=1
|
||||
case `uname -m` in
|
||||
i?86) echo "x86"
|
||||
status=0;;
|
||||
*) case `uname -p` in
|
||||
powerpc) echo "ppc"
|
||||
status=0;;
|
||||
*) echo "unknown"
|
||||
status=0;;
|
||||
esac
|
||||
esac
|
||||
return $status
|
||||
}
|
||||
arch=`DetectARCH`
|
||||
|
||||
# Create a wrapper script
|
||||
cat <<__EOF__ >"$install_path/radiant"
|
||||
#!/bin/sh
|
||||
# Needed to make symlinks/shortcuts work.
|
||||
# Run map editor with some default arguments
|
||||
|
||||
cd "$install_path"
|
||||
radiant="./radiant.$arch"
|
||||
# gcc 3.x, trying to reduce ABI issues
|
||||
export LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH
|
||||
"\$radiant" \$*
|
||||
exit \$?
|
||||
__EOF__
|
||||
|
||||
chmod 755 "$install_path/radiant"
|
||||
|
||||
# Create a q3map2 wrapper script
|
||||
cat <<__EOF__ >"$install_path/q3map2"
|
||||
#!/bin/sh
|
||||
# Needed to make symlinks/shortcuts work.
|
||||
|
||||
cd "$install_path"
|
||||
q3map2="./q3map2.$arch"
|
||||
# gcc 3.x, trying to reduce ABI issues
|
||||
export LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH
|
||||
"\$q3map2" \$*
|
||||
exit \$?
|
||||
__EOF__
|
||||
|
||||
chmod 755 "$install_path/q3map2"
|
||||
|
||||
# setup the safe guard
|
||||
echo "M4_VER_MAJOR" > $install_path/RADIANT_MAJOR
|
||||
echo "M4_VER_MINOR" > $install_path/RADIANT_MINOR
|
||||
|
||||
# why the fuck is openurl.sh not +x by default anyway
|
||||
chmod 755 "$install_path/openurl.sh"
|
||||
2192
setup/linux/setup_image/setup.data/setup.glade
Normal file
2192
setup/linux/setup_image/setup.data/setup.glade
Normal file
File diff suppressed because it is too large
Load Diff
139
setup/linux/setup_image/setup.data/setup.xml.in
Normal file
139
setup/linux/setup_image/setup.data/setup.xml.in
Normal file
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" standalone="yes"?>
|
||||
<install product="GtkRadiant-1.M4_VER_MAJOR" desc="GtkRadiant M4_VER" version="M4_VER"
|
||||
nouninstall="yes"
|
||||
postinstall="sh setup.data/postinstall.sh $*">
|
||||
ifdef(`M4_OSX', ` <install_drop_list>
|
||||
/sw/games
|
||||
/Applications
|
||||
</install_drop_list>')
|
||||
<eula>
|
||||
license.txt
|
||||
</eula>
|
||||
<readme required="true">
|
||||
README
|
||||
</readme>
|
||||
<option install="true" required="true">
|
||||
GtkRadiant editor core and documentation
|
||||
<!-- copies everything including some game pack specific stuff -->
|
||||
<files srcpath="core">
|
||||
*
|
||||
</files>
|
||||
<binary symlink="radiant">
|
||||
radiant
|
||||
</binary>
|
||||
<binary symlink="q3map2">
|
||||
q3map2
|
||||
</binary>
|
||||
<binary keepdirs="yes">
|
||||
radiant.ifdef(`M4_OSX', `ppc', `x86')
|
||||
q3map2.ifdef(`M4_OSX', `ppc', `x86')
|
||||
modules/archivepak.so
|
||||
modules/archivewad.so
|
||||
modules/archivezip.so
|
||||
modules/entity.so
|
||||
modules/image.so
|
||||
modules/imagehl.so
|
||||
modules/imageq2.so
|
||||
modules/imagepng.so
|
||||
modules/mapq3.so
|
||||
modules/mapxml.so
|
||||
modules/md3model.so
|
||||
modules/model.so
|
||||
modules/shaders.so
|
||||
modules/vfspk3.so
|
||||
ifelse(M4_GAME_Q2, `1', `
|
||||
q2/q2map
|
||||
q2/qdata3
|
||||
<!-- q2/modules/imagewal.so -->
|
||||
<!-- q2/modules/surface_quake2.so -->
|
||||
<!-- q2/modules/vfspak.so -->
|
||||
')
|
||||
ifdef(`M4_OSX', `',`heretic2/qdata3
|
||||
heretic2/q2map
|
||||
<!-- heretic2/modules/imagem8.so -->
|
||||
<!-- heretic2/modules/surface_heretic2.so -->
|
||||
<!-- heretic2/modules/vfspak.so -->
|
||||
libgcc_s.so.1
|
||||
M4_STDC')
|
||||
</binary>
|
||||
<!-- q3 game pack -->
|
||||
<files srcpath="core">
|
||||
q3.game/synapse.config
|
||||
</files>
|
||||
<binary keepdirs="yes">
|
||||
ifdef(`M4_OSX', `',` q3/bspc')
|
||||
</binary>
|
||||
<!-- wolf game pack -->
|
||||
<files srcpath="core">
|
||||
wolf.game/synapse.config
|
||||
</files>
|
||||
<binary keepdirs="yes">
|
||||
ifdef(`M4_OSX', `',` wolf/bspc')
|
||||
</binary>
|
||||
</option>
|
||||
<!-- each of the subcomponent element can be enabled/disabled -->
|
||||
<!-- each option there can have it's own install path -->
|
||||
<subcomponent name="Game Packs" version="M4_VER_MAJOR">
|
||||
<option install="true" default_path="ifdef(`M4_OSX', `/Applications/Quake3/', `/usr/local/games/quake3')">
|
||||
Quake III Arena / Team Arena
|
||||
<files srcpath="q3">
|
||||
*
|
||||
</files>
|
||||
<!-- creates the appropriate .game file -->
|
||||
<script>
|
||||
sh setup.data/config.games.sh q3 $*
|
||||
</script>
|
||||
</option>
|
||||
<option install="true" default_path="ifdef(`M4_OSX', `/Applications/RTCW/', `/usr/local/games/wolfenstein')">
|
||||
Return to Castle Wolfenstein
|
||||
<files srcpath="wolf">
|
||||
*
|
||||
</files>
|
||||
<script>
|
||||
sh setup.data/config.games.sh wolf $*
|
||||
</script>
|
||||
</option>
|
||||
ifelse(M4_GAME_ET, `1', `
|
||||
<option install="true" default_path="/usr/local/games/enemy-territory">
|
||||
Wolfenstein: Enemy Territory
|
||||
<files srcpath="et">
|
||||
*
|
||||
</files>
|
||||
<script>
|
||||
sh setup.data/config.games.sh et $*
|
||||
</script>
|
||||
</option>
|
||||
')
|
||||
ifelse(M4_GAME_DOOM3, `1', `
|
||||
<option install="true" default_path="/usr/local/games/doom3">
|
||||
Doom 3
|
||||
<!-- <files srcpath="doom3">
|
||||
*
|
||||
</files> -->
|
||||
<script>
|
||||
sh setup.data/config.games.sh doom3 $*
|
||||
</script>
|
||||
</option>
|
||||
')
|
||||
ifelse(M4_GAME_Q2, `1', `
|
||||
<option install="true" default_path="ifdef(`M4_OSX', `/Applications/Quake2/', `/usr/local/games/quake2')">
|
||||
Quake 2
|
||||
<files srcpath="q2">
|
||||
*
|
||||
</files>
|
||||
<script>
|
||||
sh setup.data/config.games.sh q2 $*
|
||||
</script>
|
||||
</option>
|
||||
')
|
||||
ifdef(`M4_OSX', `',` <option install="true" default_path="ifdef(`M4_OSX', `/Applications/Heretic2/', `/usr/local/games/heretic2')">
|
||||
Heretic 2
|
||||
<files srcpath="heretic2">
|
||||
*
|
||||
</files>
|
||||
<script>
|
||||
sh setup.data/config.games.sh heretic2 $*
|
||||
</script>
|
||||
</option>')
|
||||
</subcomponent>
|
||||
</install>
|
||||
23719
setup/linux/setup_image/setup.data/splash.xpm
Normal file
23719
setup/linux/setup_image/setup.data/splash.xpm
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user