---
name: bashc
version: 3.2.33.0
origin: shells/bashc
comment: GNU bash shell extended with visual two-panel file browser
arch: freebsd:9:x86:64
www: https://groups.google.com/forum/?fromgroups#!forum/bashc
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 815169
desc: |
  Bash Commander is a traditional GNU bash shell extended with visual two-panel
  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: https://groups.google.com/forum/?fromgroups#!forum/bashc
categories: [shells]
files:
  /usr/local/bin/bashc: 619e4ec901982b107a96186f7d75b1df50c017ca6ad5ef6a5f3e286128702c86
  /usr/local/etc/bash_commander: 9429230cf726bae82d6719d776cf074d5d426e7f946fe3502a69830c8fd52b53
  /usr/local/etc/bash_dialog: 1c294b5eef7f361e4035c019c8700d68020348f7b77f3ed875ae29ebd9f0b8a1
scripts:
  install: |
    #!/bin/sh
    #
    # $FreeBSD: ports/shells/bashc/pkg-install,v 1.2 2012/11/17 06:01:23 svnexp 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%25/*}" ] && ! 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
  deinstall: |
    #!/bin/sh
    #
    # $FreeBSD: ports/shells/bashc/pkg-deinstall,v 1.2 2012/11/17 06:01:23 svnexp Exp $
    #

    BASHC="$(echo ${PKG_PREFIX-/usr/local}/bin/bashc | /usr/bin/sed -e 's|//|/|g')"
    SHELLS="${PKG_DESTDIR-}/etc/shells"

    case $2 in
    DEINSTALL)
      if grep -qs "^$BASHC\$" "$SHELLS"; then
        if [ `id -u` -eq 0 ]; then
          TMPSHELLS=`mktemp -t shells`
          grep -v "^$BASHC\$" "$SHELLS" > "$TMPSHELLS"
          cat "$TMPSHELLS" > "$SHELLS"
          rm "$TMPSHELLS"
        else
          echo "Not root, please remove $BASHC from $SHELLS manually"
        fi
      fi
      ;;
    esac
