summaryrefslogtreecommitdiff
path: root/scripts/rstrip.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-02 08:49:37 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-02 08:49:37 +0100
commit4e2469a90193a1b4f8733b6de2238ce9b897bf90 (patch)
treef53d30478a6ca9fbf26e8d892d99c7f41a5d3302 /scripts/rstrip.sh
parent32e00c4479ec1ccc5914c4949c42ee54e4f6a728 (diff)
parentf5a8c46a5e05beadcbd2e7e2ff486974e39059fd (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts/rstrip.sh')
-rw-r--r--scripts/rstrip.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh
index e676dea82..bacf25ca7 100644
--- a/scripts/rstrip.sh
+++ b/scripts/rstrip.sh
@@ -5,6 +5,10 @@
SELF=${0##*/}
+if [[ -z $debug ]];then
+ debug=1
+fi
+
if [[ -z $prefix ]]; then
echo >&2 "$SELF: strip command not defined ('prefix' variable not set)"
exit 1
@@ -60,9 +64,13 @@ find $TARGETS -type f -a -exec file {} \; | \
echo "$SELF: $V:$S"
echo "-> $T $F"
eval "chmod u+w $F"
- eval "mkdir -p $D/usr/lib/debug/$Q"
- eval "$O --only-keep-debug $F $D/usr/lib/debug/$P.debug"
+ if [[ $debug -eq 1 ]];then
+ eval "mkdir -p $D/usr/lib/debug/$Q"
+ eval "$O --only-keep-debug $F $D/usr/lib/debug/$P.debug"
+ fi
eval "$T $F"
- eval "cd $D/usr/lib/debug/$Q && $O --add-gnu-debuglink=$R.debug $F"
+ if [[ $debug -eq 1 ]];then
+ eval "cd $D/usr/lib/debug/$Q && $O --add-gnu-debuglink=$R.debug $F"
+ fi
done
exit 0