[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - bin/pack-debug

László Németh laszlo.nemeth at collabora.com
Tue Dec 20 10:33:16 UTC 2016


 bin/pack-debug |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 3e3c33862a19984730a2562151d53f1ba0840cb1
Author: László Németh <laszlo.nemeth at 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
 


More information about the Libreoffice-commits mailing list