summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-03 07:46:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-03 07:46:38 +0100
commitfd41ea2ad4a1badf95559f1613318e9631b3ce52 (patch)
tree4c72d39b521e20a4f6bda328ed672fd0b358441c /scripts
parentdea218fbd7813abb793d4a7e022f13279e921600 (diff)
parentbeb47ef07ddcd99d751088c588bc8135f6aae7ce (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rstrip.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh
index bacf25ca7..46a4586da 100644
--- a/scripts/rstrip.sh
+++ b/scripts/rstrip.sh
@@ -5,10 +5,6 @@
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
@@ -64,12 +60,13 @@ find $TARGETS -type f -a -exec file {} \; | \
echo "$SELF: $V:$S"
echo "-> $T $F"
eval "chmod u+w $F"
- if [[ $debug -eq 1 ]];then
+ if [[ $debug -ne 0 ]];then
+ echo "mkdir for $D" >> /tmp/debug
eval "mkdir -p $D/usr/lib/debug/$Q"
eval "$O --only-keep-debug $F $D/usr/lib/debug/$P.debug"
fi
eval "$T $F"
- if [[ $debug -eq 1 ]];then
+ if [[ $debug -ne 0 ]];then
eval "cd $D/usr/lib/debug/$Q && $O --add-gnu-debuglink=$R.debug $F"
fi
done