hello world

This commit is contained in:
Timothee 'TTimo' Besset
2011-11-22 15:28:15 -06:00
commit fb1609f554
2155 changed files with 1017022 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#!/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-demo
create_link "$1"

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" standalone="yes"?>
<install product="M4_PRODUCT" desc="M4_DESC" version="M4_VERSION" postinstall="sh setup.data/postinstall.sh &quot;$@&quot;" nouninstall="yes">
<eula>
License.txt
</eula>
<readme>
README
</readme>
M4_PRODUCT
<option required="true">
M4_DESC
<binary arch="any" libs="any" symlink="doom3-demo">
doom3-demo
</binary>
<binary arch="any" libs="any">
doom.x86
</binary>
<files>
demo
gamex86.so
M4_LDD
</files>
</option>
</install>