---
name: esh
version: 0.8.5
origin: shells/esh
comment: The "easy shell", a small shell with Lisp-like syntax
arch: freebsd:9:x86:64
www: UNKNOWN
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [GPLv2]
flatsize: 124904
desc: |
  esh is a new shell for Unix, written completely from scratch. It is
  very small, both in number of lines of source code and in memory
  consumption. The whole shell is about 5000 lines of C source code, and
  occupies about twice as little memory as bash in some cases.

  However, esh is also extremely flexible, with a real programming
  language at the core. The syntax is a simplified form of Scheme.  The
  current version is 0.8, though it is already stable and
  featureful. The reason for the low version number is lack of
  real-world testing. It is released under the GPL, of course.
categories: [shells]
files:
  /usr/local/bin/esh: 727f0827ae394c3709c6776d0010f50a5f1406c6ae4e07d12e9b24ba956b640e
  /usr/local/info/esh.info: ded05f0cf9e2cc45f97c4500fc7928cbebb03a3d4352f654a50589b1cf887437
  /usr/local/share/licenses/esh-0.8.5/GPLv2: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
  /usr/local/share/licenses/esh-0.8.5/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/esh-0.8.5/catalog.mk: 79ed1ce11cbb8f8ab71aa558191202438e8dfe5679c3020927eaf8e43c0dc701
directories:
  /usr/local/share/licenses/esh-0.8.5/: n
  /usr/local/share/licenses/: y
scripts:
  post-install: |
    echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v /usr/local/bin/esh /etc/shells.bak; echo /usr/local/bin/esh) >/etc/shells
    cd /usr/local
    file=/usr/local/info/esh.info
    install-info --quiet /usr/local/info/esh.info ${file%25/*}/dir
  pre-deinstall: |
    echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v /usr/local/bin/esh /etc/shells.bak) >/etc/shells
    cd /usr/local
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    cd /usr/local
    file=/usr/local/info/esh.info
    install-info --quiet --delete /usr/local/info/esh.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
