Commit ab93e6a4 authored by Ed Reel's avatar Ed Reel Committed by Kazushi (Jam) Marukawa

Strip binaries but not compressed archives

parent 7b74ce9f
......@@ -475,8 +475,8 @@ def install_package (pkgdir)
strip_find_files "find . -type f -name 'lib*.a' -print", "-S"
strip_find_files "find . -type f -name 'lib*.so*' -print", "-S"
# Strip binaries
strip_find_files "find . -type f -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
# Strip binaries but not compressed archives
strip_find_files "find . -type f ! -iname '*\.zip' ! -iname '*\.tar' ! -iname '*\.gz' ! -iname '*\.tgz' ! -iname '*\.bz2' -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
system "tar cf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment