compatibility fixes with old solaris sh
This commit is contained in:
parent
5cef8b6505
commit
b4adb3dbcf
1 changed files with 13 additions and 14 deletions
|
@ -22,9 +22,10 @@
|
|||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# $Id: fluxbox-generate_menu,v 1.14 2002/11/19 11:31:31 fluxgen Exp $
|
||||
# $Id: fluxbox-generate_menu,v 1.15 2002/11/29 13:39:37 rathnor Exp $
|
||||
|
||||
[ `id -u` -eq 0 ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
|
||||
WHOAMI=`whoami`
|
||||
[ "$WHOAMI" = "root" ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
|
||||
|
||||
# Functions
|
||||
display_usage() {
|
||||
|
@ -65,7 +66,6 @@ EOF
|
|||
}
|
||||
|
||||
display_authors() {
|
||||
WHOAMI=`whoami`
|
||||
cat <<EOF
|
||||
|
||||
fluxbox-generate_menu was brought to you by:
|
||||
|
@ -73,25 +73,24 @@ fluxbox-generate_menu was brought to you by:
|
|||
Henrik Kinnunen: Project leader.
|
||||
Han Boetes: Packaging, debugging and scripts.
|
||||
Jeramy B. Smith: Packaging assistance, gnome and kde menu system.
|
||||
Xyrnix: Mysterious guest developer who made find_it module.
|
||||
Filippo Pappalardo: Italian locales and -t option.
|
||||
Simon Bowden: Cleanups and compatibility for sun.
|
||||
$WHOAMI: Innocent bystander.
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
find_it() {
|
||||
if [ -z "$1" ]; then
|
||||
# echo "Nothing found"
|
||||
return 1
|
||||
fi
|
||||
which $1 > /dev/null 2> /dev/null
|
||||
found=$?
|
||||
if [ $found -eq 0 -a $# -gt 1 ]; then
|
||||
file=`which $1 2> /dev/null`
|
||||
if [ -x "$file" ]; then
|
||||
if [ $# -gt 1 ]; then
|
||||
shift
|
||||
$*
|
||||
fi
|
||||
return $found
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
append() {
|
||||
|
|
Loading…
Reference in a new issue