Applied patch 1055774 from Paul Cornett for platforms

without a posix /bin/sh.  Among those reported as not yet
expired are Solaris 9, IRIX 6.5, and Tru64 5.1b.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee 2004-10-28 02:00:23 +00:00
parent e6a156f9c8
commit 68ca6f5252

View File

@ -17,8 +17,25 @@
# Licence: wxWindows licence
############################################################################
# We expect a posix shell, so if this is a Bourne shell,
# and apparently a few still exist, try for bash or ksh.
# Start with some basic stuff, like the ability to die gracefully,
if [ ~ = '~' ]
then
if (bash -c echo) >/dev/null 2>&1
then
exec bash "$0" "$@"
fi
if (ksh -c echo) >/dev/null 2>&1
then
exec ksh "$0" "$@"
fi
echo "$0: this script requires bash or ksh"
exit 1
fi
# On with some basic stuff, like the ability to die gracefully,
# and to tell people what we are about.
# ------------------------------------------------------------------