summaryrefslogtreecommitdiffstats
path: root/src/oh-strip.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-06 11:18:15 (EST)
committer P. J. McDermott <pjm@nac.net>2014-03-06 11:18:15 (EST)
commited2110fe0d90653e68406bdf62b33287a41b82f4 (patch)
tree57557adab107258b88ba4704d2bb43ea144fe9d7 /src/oh-strip.sh
parent779336f52b48317bd08b5e667ee2ddb28f372eaa (diff)
src/*.sh: Wrap long lines.
Diffstat (limited to 'src/oh-strip.sh')
-rw-r--r--src/oh-strip.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/oh-strip.sh b/src/oh-strip.sh
index b104473..45dd1b8 100644
--- a/src/oh-strip.sh
+++ b/src/oh-strip.sh
@@ -48,7 +48,8 @@ main()
find "${dir}" -type f -a ! -path '*/debug/*' -a -name '*.so*' | \
while IFS="${CR}" read file; do
- if file "${file}" | grep 'ELF.*shared' >/dev/null 2>&1; then
+ if file "${file}" | grep 'ELF.*shared' \
+ >/dev/null 2>&1; then
file="${file#${dir}}"
file="/${file##/}"
strip_so "${file}"
@@ -65,8 +66,8 @@ main()
fi
done
- find "${dir}" -type f -a ! -path '*/debug/*' \
- -a -name 'lib*.a' -a ! -name '*_g.a' | while IFS="{CR}" read file; do
+ find "${dir}" -type f -a ! -path '*/debug/*' -a -name 'lib*.a' \
+ -a ! -name '*_g.a' | while IFS="{CR}" read file; do
file="${file#${dir}}"
file="/${file##/}"
strip_a "${file}"
@@ -130,8 +131,8 @@ keep_debug()
return
fi
- build_id_parts="$(${READELF} -n "${dir}/${file}" | \
- sed -n 's/^.*Build ID: \([0-9a-f][0-9a-f]\)\([0-9a-f]*\)$/\1 \2/p')"
+ build_id_parts="$(${READELF} -n "${dir}/${file}" | sed -n \
+ 's/^.*Build ID: \([0-9a-f][0-9a-f]\)\([0-9a-f]*\)$/\1 \2/p')"
if [ -z "${build_id_parts}" ]; then
return
fi