---
name: gwhich
version: 2.20
origin: misc/gwhich
comment: GNU Which - Everything you never wanted in a which
arch: freebsd:9:x86:64
www: http://www.xs4all.nl/~carlo17/which/index.html
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 34027
desc: |
  GNU Which by Carlo Wood (Run of ircu fame)

  The main difference with version 1.0 by Paul Vixie is that this
  version will not return directory names as being executables
  and that by default it will expand a leading "./" and "~/" to
  its full path on output.

  WWW: http://www.xs4all.nl/~carlo17/which/index.html
categories: [misc]
files:
  /usr/local/bin/gwhich: feaafbfce34eab1025628e90b204994075f9920a7d38b6da0a69b6177cf4ae44
  /usr/local/info/which.info: 205088b7bfc052d458c7e8354e61a07a1f01ac0093b372a4384b89bf1a40138b
  /usr/local/man/man1/gwhich.1.gz: 95ef9c5327663da3ec7c03aa551db263cd70ae29610fb4e1a0bcc63819a78024
  /usr/local/share/examples/gwhich/EXAMPLES: 821ebb97cb83bdd80d340008cad1687fe46dd32c11a0d821bd3c59d94fb9669b
directories:
  /usr/local/share/examples/gwhich/: n
scripts:
  post-install: |
    file=/usr/local/info/which.info
    install-info --quiet /usr/local/info/which.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/which.info
    install-info --quiet --delete /usr/local/info/which.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
