bin/pack-debug | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 3e3c33862a19984730a2562151d53f1ba0840cb1 Author: László Németh <laszlo.nem...@collabora.com> Date: Tue Dec 20 11:31:00 2016 +0100 restore original not stripped file Change-Id: Iebea3947367572f42a1803e35e7c5b4b37d8cc31 diff --git a/bin/pack-debug b/bin/pack-debug index 832afe8..4d9f45f 100755 --- a/bin/pack-debug +++ b/bin/pack-debug @@ -256,8 +256,8 @@ do do cd $(dirname $j) so=$(basename $j) - # keep not stripped version - echo "$(file $so)" | grep -q 'not stripped' && cp $so $so.copy + # keep original file + cp $so $so.copy objcopy --only-keep-debug $so $so.dbg objcopy --strip-debug $so objcopy --add-gnu-debuglink=$so.dbg $so @@ -288,7 +288,8 @@ do cd $(dirname $j) so=$(basename $j) rm $so.dbg - echo "$(file $so)" | grep -q 'not stripped' || mv $so.copy $so + # restore original file + mv -f $so.copy $so cd - done
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits