# $Id: Portfile 23473 2007-04-01 23:17:25Z blair@macports.org $ PortSystem 1.0 name gwhich version 2.16 revision 2 categories sysutils maintainers nomaintainer@macports.org description GNU Which - Everything you never wanted in a which long_description \ Which is a utility that prints out the full path of the executables \ that bash would execute when the passed program names would have \ been entered on the shell prompt. It does this by using the exact \ same algorithm as bash. Tildes and a dot in the PATH are now \ expanded to the full path by default. Options allow to rather print\ '~/*' or './*' and/or to print all executables that match any \ directory in PATH. homepage http://www.xs4all.nl/~carlo17/which/ platforms darwin master_sites gnu:which distname which-${version} checksums md5 830b83af48347a9a3520f561e47cbc9b configure.args --infodir=${prefix}/share/info \ --mandir=${prefix}/share/man \ --program-prefix=g post-destroot { cd ${destroot}${prefix}/share/info file rename which.info gwhich.info if {[variant_isset with_default_names]} { foreach d {bin share/info share/man/man1} { cd ${destroot}${prefix}/$d foreach a [glob g*] { regexp g(.+) $a dummy b file link -hard $b g$b } } } } test.run yes test.target check variant with_default_names {}