summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-04-24 19:45:45 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-04-24 19:45:45 (EDT)
commit0097bc357d61643044a578c6e474ceeee231d98b (patch)
tree204df3411f523790199c7cb5d45d7a3a35549b29
parent564513e109fe9160a39160f22ac35c88ea7fe8ba (diff)
Shorten lines in oh-strip.
-rw-r--r--src/oh-strip.sh10
1 files changed, 7 insertions, 3 deletions
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'