88863d272a
file browser. Features: * Full bash compatibility. * Embedded visual file browser. * Two file panels, turned on and off by pressing ^O. * Actions and colors configured via .bashrc script. * Run current file on pressing Enter, configurable via commander_start_file() shell function. * Perform an action on pressing F1-F20 keys, configurable via commander_fN() shell functions. WWW: http://groups.google.com/group/bashc/web/overview
19 lines
462 B
Bash
19 lines
462 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/shells/bashc/pkg-install,v 1.1 2008-03-11 22:38:46 alepulver Exp $
|
|
#
|
|
|
|
BASHC="$(echo ${PKG_PREFIX-/usr/local}/bin/bashc | /usr/bin/sed -e 's|//|/|g')"
|
|
SHELLS="/etc/shells"
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
if [ -d "${SHELLS%/*}" ] && ! grep -qs "^$BASHC\$" "$SHELLS"; then
|
|
if [ `id -u` -eq 0 ]; then
|
|
echo "$BASHC" >> "$SHELLS"
|
|
else
|
|
echo "Not root, please add $BASHC to $SHELLS manually"
|
|
fi
|
|
fi
|
|
;;
|
|
esac
|