mirror of
https://github.com/id-Software/DOOM-3.git
synced 2026-03-20 17:10:42 +01:00
hello world
This commit is contained in:
39
neo/sys/linux/setup/image/setup.data/postinstall.sh
Normal file
39
neo/sys/linux/setup/image/setup.data/postinstall.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
# create the wrapper
|
||||
|
||||
create_link()
|
||||
{
|
||||
|
||||
echo "#!/bin/sh
|
||||
# Needed to make symlinks/shortcuts work.
|
||||
# the binaries must run with correct working directory
|
||||
cd \"$1\"
|
||||
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:.
|
||||
exec ./$BINARY \"\$@\"
|
||||
" > "$1/$TARGET"
|
||||
|
||||
chmod a+x "$1/$TARGET"
|
||||
|
||||
# and then we must symlink to this
|
||||
# can't be done from setup.xml because it would symlink the binary
|
||||
if [ -n "$SETUP_SYMLINKSPATH" ] && [ -d "$SETUP_SYMLINKSPATH" ]
|
||||
then
|
||||
# the symlink might already exists, in case we will remove it
|
||||
if [ -h "$SETUP_SYMLINKSPATH/$TARGET" ]
|
||||
then
|
||||
echo "Removing existing $TARGET symlink"
|
||||
rm "$SETUP_SYMLINKSPATH/$TARGET"
|
||||
fi
|
||||
echo "Installing symlink $SETUP_SYMLINKSPATH/$TARGET -> $1/$TARGET"
|
||||
ln -s "$1/$TARGET" "$SETUP_SYMLINKSPATH/$TARGET"
|
||||
fi
|
||||
}
|
||||
|
||||
BINARY=doom.x86
|
||||
TARGET=doom3
|
||||
create_link "$1"
|
||||
BINARY=doomded.x86
|
||||
TARGET=doom3-dedicated
|
||||
create_link "$1"
|
||||
|
||||
chmod +x "$1/openurl.sh"
|
||||
42
neo/sys/linux/setup/image/setup.data/setup.xml.in
Normal file
42
neo/sys/linux/setup/image/setup.data/setup.xml.in
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" standalone="yes"?>
|
||||
<install product="M4_PRODUCT" desc="M4_DESC" version="M4_VERSION" postinstall="sh setup.data/postinstall.sh "$@"" nouninstall="yes" nopromptoverwrite="yes">
|
||||
<eula>
|
||||
License.txt
|
||||
</eula>
|
||||
<readme>
|
||||
README
|
||||
</readme>
|
||||
M4_PRODUCT
|
||||
<option required="true">
|
||||
M4_DESC
|
||||
<binary arch="any" libs="any" symlink="doom3" icon="doom3.png" play="no">
|
||||
doom3
|
||||
</binary>
|
||||
<binary arch="any" libs="any" symlink="doom3-dedicated" icon="doom3.png" play="no">
|
||||
doom3-dedicated
|
||||
</binary>
|
||||
<binary arch="any" libs="any" play="no">
|
||||
doom.x86
|
||||
doomded.x86
|
||||
</binary>
|
||||
<files>
|
||||
base
|
||||
d3xp
|
||||
pb
|
||||
M4_LDD
|
||||
version.info
|
||||
openurl.sh
|
||||
doom3.png
|
||||
CHANGES
|
||||
</files>
|
||||
</option>
|
||||
<option install="true">
|
||||
PunkBuster client/server files
|
||||
<eula>
|
||||
pb/PB_EULA.txt
|
||||
</eula>
|
||||
<files>
|
||||
pb/
|
||||
</files>
|
||||
</option>
|
||||
</install>
|
||||
Reference in New Issue
Block a user