diff --git a/unix/make_installer b/unix/make_installer
index 4daa8ee..5168f0a 100755
|
|
|
|
| 1 | | #!/usr/bin/env bash |
| | 1 | #!/bin/env bash |
| 2 | 2 | # |
| 3 | 3 | # Script for creating a self-contained Wings package for Unix systems. |
| 4 | 4 | # |
| 5 | 5 | |
| 6 | 6 | # Configurable stuff. |
| 7 | | INSTALL=/usr/bin/install |
| | 7 | INSTALL=/bin/install |
| 8 | 8 | if [ -z "$ESDL_PATH" ]; then |
| 9 | 9 | echo "The environment variable ESDL_PATH must be set to " \ |
| 10 | 10 | "the top of the ESDL installation." >&2 |
| … |
… |
$INSTALL -c "$ESDL_PATH"/priv/sdl_driver.so "$dest/priv" |
| 91 | 91 | rm -rf "$dest/ebin/sdl_audio.beam" "$dest/ebin/sdl_joystick.beam" |
| 92 | 92 | strip --strip-debug --strip-unneeded "$dest/priv/sdl_driver.so" |
| 93 | 93 | |
| 94 | | # Copy the SDL so. |
| 95 | | sdl_lib=`ldd "$dest/priv/sdl_driver.so" | awk '$1 ~ /^libSDL/ { print $3}'` |
| 96 | | sdl_lib_name=`basename $sdl_lib` |
| 97 | | if [ ! -L $sdl_lib ]; then |
| 98 | | echo `basename $0`: "$sdl_lib expected to be a symlink" |
| 99 | | $INSTALL -c $sdl_lib "$dest/priv" |
| 100 | | else |
| 101 | | lib_dir=`dirname $sdl_lib` |
| 102 | | linkname=`readlink $sdl_lib` |
| 103 | | $INSTALL -c $lib_dir/$linkname "$dest/priv" |
| 104 | | rm -f $dest/priv/$sdl_lib_name |
| 105 | | (cd $dest/priv; ln -s $linkname $sdl_lib_name) |
| 106 | | fi |
| 107 | | |
| 108 | 94 | # |
| 109 | 95 | # Remove files from OTP not needed. |
| 110 | 96 | # |