From 8d7c58ef9e8954f92ab4a62a7ab8da5d21cedb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 7 Mar 2016 16:10:36 +0100 Subject: [PATCH] cleanup-timestamp-macros: catch more mime-types --- common/hooks/post-install/07-cleanup-timestamp-macros.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/hooks/post-install/07-cleanup-timestamp-macros.sh b/common/hooks/post-install/07-cleanup-timestamp-macros.sh index 00b66a159c1..9e69dc61b0b 100644 --- a/common/hooks/post-install/07-cleanup-timestamp-macros.sh +++ b/common/hooks/post-install/07-cleanup-timestamp-macros.sh @@ -12,7 +12,10 @@ hook() { # Clean up shell scripts, perl files, pkgconfig files etc. for f in $(grep -r -l -e "$strip" "$PKGDESTDIR" ); do mimetype=$(file --mime-type "$f" | awk '{ print $2 }') - if [ "$mimetype" == "text/plain" -o "$mimetype" == "text/x-shellscript" ]; then + if [ "$mimetype" == "text/plain" -o \ + "$mimetype" == "text/x-makefile" -o \ + "$mimetype" == "text/x-shellscript" -o \ + "$mimetype" == "application/xml" ]; then sed -i "$f" -e "s;$strip;;" msg_warn "Cleaned up ${f#${PKGDESTDIR}} ...\n" else