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
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
# DEALINGS IN THE SOFTWARE.
|
# 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
|
# Functions
|
||||||
display_usage() {
|
display_usage() {
|
||||||
|
@ -65,33 +66,31 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
display_authors() {
|
display_authors() {
|
||||||
WHOAMI=`whoami`
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
fluxbox-generate_menu was brought to you by:
|
fluxbox-generate_menu was brought to you by:
|
||||||
|
|
||||||
Henrik Kinnunen: Project leader.
|
Henrik Kinnunen: Project leader.
|
||||||
Han Boetes: Packaging, debugging and scripts.
|
Han Boetes: Packaging, debugging and scripts.
|
||||||
Jeramy B. Smith: Packaging assistance, gnome and kde menu system.
|
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.
|
Filippo Pappalardo: Italian locales and -t option.
|
||||||
|
Simon Bowden: Cleanups and compatibility for sun.
|
||||||
$WHOAMI: Innocent bystander.
|
$WHOAMI: Innocent bystander.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
find_it() {
|
find_it() {
|
||||||
if [ -z "$1" ]; then
|
file=`which $1 2> /dev/null`
|
||||||
# echo "Nothing found"
|
if [ -x "$file" ]; then
|
||||||
|
if [ $# -gt 1 ]; then
|
||||||
|
shift
|
||||||
|
$*
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
which $1 > /dev/null 2> /dev/null
|
|
||||||
found=$?
|
|
||||||
if [ $found -eq 0 -a $# -gt 1 ]; then
|
|
||||||
shift
|
|
||||||
$*
|
|
||||||
fi
|
|
||||||
return $found
|
|
||||||
}
|
}
|
||||||
|
|
||||||
append() {
|
append() {
|
||||||
|
|
Loading…
Reference in a new issue