184,16 → 184,10 |
mv $(TMP)/usr/bin/pike $(TMP)/usr/bin/$(PIKE) |
mv $(TMP)/usr/share/man/man1/pike.1 $(TMP)/usr/share/man/man1/$(PIKE).1 |
|
# Fix permissions and shebang lines |
-for f in `find $(TMP)/usr/bin $(TMP)/usr/lib -type f`; do \ |
if file $$f | grep -q "script"; then \ |
chmod a+x $$f; \ |
sed -ri -e 's@#!.*NOMODULE@#!/usr/bin/$(PIKE)@' \ |
-e 's@#! */usr/local/bin/pike@#!/usr/bin/$(PIKE)@' \ |
-e 's@#! */usr/bin/env.*pike@#!/usr/bin/$(PIKE)@' \ |
$$f; \ |
fi; \ |
done |
# Simply strip exec permissions and shebangs from all pike scripts. |
find $(TMP)/usr -name *.p* -type f \ |
-exec chmod a-x '{}' + \ |
-exec sed -ri -e '1!b;/^#!/d' '{}' + |
|
# Don't install our own specs file - the ordinary one is not that bad really |
# sed -e 's/@PIKEVERSION@/$(VERSION)/g' \ |