You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
367 B

  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