mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Attempt to strip comments and pod docs from perl modules
|
||||
#
|
||||
|
||||
[ "$#" -gt 0 ] || set .
|
||||
echo "---> Stripping modules in: $@" >&2
|
||||
find "$@" -name \*.pm -or -name \*.pl -or -name \*.pod | while read fn; do
|
||||
echo " $fn" >&2
|
||||
sed -i -e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d; /^=\(head\|pod\|item\|over\|back\)/,$d; /^#$/d; /^#[^!"'"'"']/d' "$fn"
|
||||
done
|
||||
Reference in New Issue
Block a user