From dfc17323a6671987377841c035577dc98b2a4e1a Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 12 Sep 2003 08:38:13 +0000 Subject: [PATCH] added smart_strip.sh for rpm building git-svn-id: trunk@4604 - --- .gitattributes | 1 + tools/install/smart_strip.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tools/install/smart_strip.sh diff --git a/.gitattributes b/.gitattributes index 562cff3b3d..3422d05997 100644 --- a/.gitattributes +++ b/.gitattributes @@ -997,6 +997,7 @@ tools/install/create_lazarus_deb.sh -text svneol=native#application/x-sh tools/install/create_lazarus_export_tgz.sh -text svneol=native#application/x-sh tools/install/create_lazarus_rpm.sh -text svneol=native#application/x-sh tools/install/create_lazarus_tgz_from_local_dir.sh -text svneol=native#application/x-sh +tools/install/smart_strip.sh -text svneol=native#application/x-sh tools/lazarusmake.ini svneol=native#text/plain tools/lazres.lpi svneol=native#text/plain tools/lazres.pp svneol=native#text/pascal diff --git a/tools/install/smart_strip.sh b/tools/install/smart_strip.sh new file mode 100644 index 0000000000..78cddb9234 --- /dev/null +++ b/tools/install/smart_strip.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +Params=$@ +for p in $Params; do + File=$p +done +echo $File | grep -q '\bpalmos\b' || strip $PARAMS + +# end. +