1 dnl `uname -m` quoting is a nightmare
2 dnl <sander> TTimo: You could do: `uname -a`
6 # post installation script, finalize everything
8 # The install path is the first argument of the script
11 # Return the appropriate architecture string
28 # Create a wrapper script
29 cat <<__EOF__ >"$install_path/radiant"
31 # Needed to make symlinks/shortcuts work.
32 # Run map editor with some default arguments
35 radiant="./radiant.$arch"
36 # gcc 3.x, trying to reduce ABI issues
37 export LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH
42 chmod 755 "$install_path/radiant"
44 # Create a q3map2 wrapper script
45 cat <<__EOF__ >"$install_path/q3map2"
47 # Needed to make symlinks/shortcuts work.
50 q3map2="./q3map2.$arch"
51 # gcc 3.x, trying to reduce ABI issues
52 export LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH
57 chmod 755 "$install_path/q3map2"
59 # setup the safe guard
60 echo "M4_VER_MAJOR" > $install_path/RADIANT_MAJOR
61 echo "M4_VER_MINOR" > $install_path/RADIANT_MINOR
63 # why the fuck is openurl.sh not +x by default anyway
64 chmod 755 "$install_path/openurl.sh"