From 0097bc357d61643044a578c6e474ceeee231d98b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 24 Apr 2012 19:45:45 -0400 Subject: Shorten lines in oh-strip. --- diff --git a/src/oh-strip.sh b/src/oh-strip.sh index adbf217..5b0811a 100644 --- a/src/oh-strip.sh +++ b/src/oh-strip.sh @@ -74,9 +74,13 @@ while [ ${#} -gt 0 ]; do # from the original object file to the debugging object file. mkdir -p "$(dirname "dest/usr/lib/debug/${1}")" || \ oh_error 'Cannot make directory path to debugging object' - ${OBJCOPY:-objcopy} --only-keep-debug --compress-debug-sections "dest/${1}" \ - "dest/usr/lib/debug/${1}" || oh_error 'Cannot make debugging object' - ${OBJCOPY:-objcopy} --add-gnu-debuglink="dest/usr/lib/debug/${1}" "dest/${1}" || \ + ${OBJCOPY:-objcopy} \ + --only-keep-debug --compress-debug-sections \ + "dest/${1}" "dest/usr/lib/debug/${1}" || \ + oh_error 'Cannot make debugging object' + ${OBJCOPY:-objcopy} \ + --add-gnu-debuglink="dest/usr/lib/debug/${1}" \ + "dest/${1}" || \ oh_error 'Cannot add GDB link' chmod 644 "dest/usr/lib/debug/${1}" || \ oh_error 'Cannot set mode on debugging object' -- cgit v0.9.1