lazarus/tools/install/smart_strip.sh
2004-01-08 22:15:39 +00:00

25 lines
391 B
Bash

#!/usr/bin/env bash
# Wrapper for the strip command
#
# The redhat rpm scripts try to strip files, that can't be stripped.
# This wrapper simply skips some files.
set -e
#set -x
Params=$@
#echo "SMART STRIP $Params"
# The last parameter is the file
for p in $Params; do
File=$p
done
echo $File | grep -q '\bpalmos\b' && exit
echo $File | grep -q '\.a$' && exit
strip $Params
# end.