diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-04 21:08:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-04 21:08:32 +0100 |
commit | bce426f33b4619e49f8040b8f47a17d0772eb083 (patch) | |
tree | 6a6b6e1f34f13d045489abd14f4138feb56bb1cf /scripts/rstrip.sh | |
parent | 76673934d3c65b7340089214d690aa996ced9239 (diff) | |
parent | 3466b70bbf4786274fe5c9028653264fb6239c4f (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts/rstrip.sh')
-rw-r--r-- | scripts/rstrip.sh | 9 |
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 |