No Description

strippm.sh 367B

1234567891011
  1. #!/bin/sh
  2. #
  3. # Attempt to strip comments and pod docs from perl modules
  4. #
  5. [ "$#" -gt 0 ] || set .
  6. echo "---> Stripping modules in: $@" >&2
  7. find "$@" -name \*.pm -or -name \*.pl -or -name \*.pod | while read fn; do
  8. echo " $fn" >&2
  9. sed -i -e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d; /^=\(head\|pod\|item\|over\|back\)/,$d; /^#$/d; /^#[^!"'"'"']/d' "$fn"
  10. done