CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Enabled large file support.
[pkgutils-cross.git] / pkgmk.in
index 51fd8f6d0faf21493df3eb6b8ac780d7dea67774..bfa1701103ac7ca78ae9938066d03461b832f7bb 100755 (executable)
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -242,13 +242,16 @@ strip_files() {
        fi
 
        find . -type f -printf "%P\n" | $FILTER | while read FILE; do
-               if file -b "$FILE" | grep '^.*ELF.*executable.*not stripped$' &> /dev/null; then
+               case $(file -b "$FILE") in
+               *ELF*executable*not\ stripped)
                        strip --strip-all "$FILE"
-               elif file -b "$FILE" | grep '^.*ELF.*shared object.*not stripped$' &> /dev/null; then
+                       ;;
+               *ELF*shared\ object*not\ stripped)
                        strip --strip-unneeded "$FILE"
-               elif file -b "$FILE" | grep '^current ar archive$' &> /dev/null; then
+                       ;;
+               current\ ar\ archive)
                        strip --strip-debug "$FILE"
-               fi
+               esac
        done
 }