30 lines
773 B
Bash
Executable File
30 lines
773 B
Bash
Executable File
#!/bin/bash
|
|
# -*- mode: sh; fill-column: 75; tab-width: 8; coding: utf-8-unix -*-
|
|
|
|
# this should be unused
|
|
|
|
[ -z "$prog" ] && prog=`basename $0 .bash`
|
|
[ -z "$USER" ] && USER=$( id -un )
|
|
ROLE=base
|
|
[ -f /usr/local/bin/usr_local_tput.bash ] && \
|
|
. /usr/local/bin/usr_local_tput.bash
|
|
. /usr/local/src/usr_local_src.bash
|
|
|
|
base=usr_local_base
|
|
# DBUG 0=$0
|
|
|
|
## box_gentoo_emerge - unused?
|
|
box_gentoo_emerge () {
|
|
msys_gentoo_emerge "$@"
|
|
return $?
|
|
}
|
|
|
|
|
|
if [ -x /usr/bin/basename ] && [ $( /usr/bin/basename -- $0 ) = $base'.bash' -o $( basename -- $0 ) = $base'.sh' ] ; then
|
|
[ "$#" -eq 0 ] && exit 0
|
|
[ "$#" -eq 1 ] && [ "$1" = '-h' -o "$1" = '--help' ] && \
|
|
echo USAGE: $0 && grep '^[a-z].*()\|^## ' $0 | sed -e 's/().*//'|sort && exit 0
|
|
eval "$@"
|
|
exit $?
|
|
fi
|