---
name: ah-tty
version: 0.3.12
origin: sysutils/ah-tty
comment: Ah-tty is an automatic helper for command prompts and shells
arch: freebsd:9:x86:64
www: http://ah-tty.sourceforge.net/
maintainer: mich@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 687615
desc: "A helpful termulator Emulator - ah-tty provides context-sensitive help \nat
  a UNIX shell prompt. ah-tty executes an inferior shell, and watches \nthe output
  from the shell and the input to it from the user carefully, \nto determine what
  is a prompt, and what is actually a command typed by \nthe user.\n\nWWW: http://ah-tty.sourceforge.net/\n"
categories: [sysutils]
files:
  /usr/local/bin/ah-tty: 8a37d69dc0c9872d5bf06e04f4ff092d86cadcb1a00ae30d52afc12484f896e9
  /usr/local/bin/ah-tty.static: a8b2a1cd4d02719214d3075663183903a54acf50cb78e2ff0dde4dc34e54ff9a
  /usr/local/info/ah-tty.info: 7c0caf22b30042e0b5f7392b19b62fdc6eef5db00e6b0ed4b12ae1a9310385e7
  /usr/local/man/man1/ah-tty.1.gz: a87f7f8d0aefac03339f36b4f4e62b55daa440386f7098b693412aab707a8882
  /usr/local/share/ah-tty.conf: 763e0b8fbb44d2323dcd922a34feeaa3bf1e15aba89f09c8d149e4cc52ce9438
scripts:
  post-install: |
    file=/usr/local/info/ah-tty.info
    install-info --quiet /usr/local/info/ah-tty.info ${file%25/*}/dir
  pre-deinstall: |
    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: |
    file=/usr/local/info/ah-tty.info
    install-info --quiet --delete /usr/local/info/ah-tty.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
