[liblas] 19/19: Add script to update symbols files.

Bas Couwenberg sebastic at xs4all.nl
Sat Feb 8 01:30:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch symbols
in repository liblas.

commit 0995d633b63dd306590c290e43aba1feab0f60f3
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jan 31 06:11:11 2014 +0100

    Add script to update symbols files.
---
 debian/liblas-symbols.sh | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/debian/liblas-symbols.sh b/debian/liblas-symbols.sh
new file mode 100644
index 0000000..a767d38
--- /dev/null
+++ b/debian/liblas-symbols.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+PKGS="liblas2 liblas-c2"
+VERSION=$1
+if [ -z "${VERSION}" ]; then
+	echo "Usage: $0 <VERSION>"
+	exit 1
+fi
+
+ABI=$(echo $VERSION | sed 's/[\+\~\-].*$//')
+
+for PKG in $PKGS; do
+	SYMBOLS="debian/${PKG}.symbols"
+
+	# Remove old architecture symbols files
+	rm -f symbols.*
+
+	# Download binary packages from snapshot.debian.org
+	debsnap --binary ${PKG} -f -v
+
+	for DEB in binary-${PKG}/${PKG}_${VERSION}_*.deb
+	do
+		DIR=$(echo $DEB | sed 's/.deb$//')
+
+		# Unpack binary package
+		dpkg-deb -R $DEB $DIR
+	
+		ARCH=$(dpkg-deb -f $DEB Architecture)
+		#LIB=$(find $DIR -type l -name "*.so.?")
+		LIB=$(find $DIR -type f -name "*.so.?.?.?")
+	
+		# Generate symbols for the architecture
+		pkgkde-gensymbols -p${PKG} -v${ABI} -Osymbols.${ARCH} -e${LIB}
+	done
+
+	# Create symbols file for all architectures
+	pkgkde-symbolshelper create -o ${SYMBOLS} -v ${ABI} symbols.*
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/liblas.git



More information about the Pkg-grass-devel mailing list