shebang check: find all executable things (including symlinks)
authorFabian Groffen <grobian@gentoo.org>
Sun, 4 Jul 2010 09:17:22 +0000 (11:17 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 4 Jul 2010 09:17:22 +0000 (11:17 +0200)
commit807fbb504a3edba375f31d6ca80eec36b88bb1aa
tree0e2e1692162b01fc245537cad281973f7f96d73a
parent66229e81112a43d1396afd5d4acdeadec6751697
shebang check: find all executable things (including symlinks)

autoconf-wrapper package installs an executable script in usr/lib/misc
which is not in path, hence, the script is not prefixed.  However,
symlinks from usr/bin (autoconf, autoreconf, etc.) point to it, hence
the script should have been prefixed.  We now also check symlinks and
change whatever they point to.  Because this may mean the same file
(target) is evaluated multiple times (symlinks pointing to it) the sed
expression had to be made idempotent such that we don't end up with a
multiple of prefixes in the shebang.
bin/misc-functions.sh