smart_strip.sh 319 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # Wrapper for the strip command
  3. #
  4. # The redhat rpm scripts try to strip files, that can't be stripped.
  5. # This wrapper simply skips some files.
  6. set -e
  7. #set -x
  8. Params=$@
  9. # The last parameter is the file
  10. for p in $Params; do
  11. File=$p
  12. done
  13. echo $File | grep -q '\bpalmos\b' || strip $Params
  14. # end.