This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository jts.
commit 8a09185866a40058bea221e1d305f3878ee3cf39 Author: Bas Couwenberg <[email protected]> Date: Sat Jan 16 00:37:27 2016 +0100 Add custom script to watch file for source JAR unpacking. --- debian/changelog | 1 + debian/unpack-source-jars | 66 +++++++++++++++++++++++++++++++++++++++++++++++ debian/watch | 3 ++- 3 files changed, 69 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4d179ce..05bef87 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ jts (1.13+ds-2) UNRELEASED; urgency=medium * Use minimal dh rules with maven buildsystem instead of CDBS. + * Add custom script to watch file for source JAR unpacking. -- Bas Couwenberg <[email protected]> Fri, 20 Nov 2015 16:54:56 +0100 diff --git a/debian/unpack-source-jars b/debian/unpack-source-jars new file mode 100755 index 0000000..de36d8b --- /dev/null +++ b/debian/unpack-source-jars @@ -0,0 +1,66 @@ +#!/bin/sh + +set -e + +# Version 3: "script --upstream-version version ../spkg_version.orig.tar.gz" +# Version 4: "script --upstream-version version" + +OPTION=$1 +VERSION=$2 +FILE=$3 + +if [ ! -r $FILE ]; then + echo "Cannot read file: $FILE" + exit 1 +fi + +ZIPFILE=$(readlink -f ${FILE}) + +CURDIR=$(pwd) + +NAME=$(dpkg-parsechangelog | awk '/^Source/ { print $2 }') + +PACKAGE=$NAME + +DEBIANDIR=$(readlink -f $(dirname $0)) +PACKAGEDIR=$(readlink -f $(dirname ${DEBIANDIR})) +PARENTDIR=$(readlink -f $(dirname ${PACKAGEDIR})) + +TMPDIR=$(mktemp -d) + +cd ${TMPDIR} + +TARDIR=${NAME}-${VERSION} + +JTSJAR=${TARDIR}/lib/jts-${VERSION}-sources.jar +JTSDIR=${TARDIR}/src + +JTSIOJAR=${TARDIR}/lib/jtsio-${VERSION}-sources.jar +JTSIODIR=${TARDIR}/jtsio/src + +unzip -q ${ZIPFILE} -d ${TARDIR} + +mkdir -p ${JTSDIR} +unzip -q ${JTSJAR} -d ${JTSDIR} + +mkdir -p ${JTSIODIR} +unzip -q ${JTSIOJAR} -d ${JTSIODIR} + +rm -rf ${TARDIR}/jtsio/doc/javadoc/* +rm -rf ${TARDIR}/doc/javadoc/* +rm -rf ${TARDIR}/doc/*.pdf +rm -rf ${TARDIR}/lib/* + +ORIGTARFILE="${PACKAGE}_${VERSION}+ds.orig.tar.gz" + +GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf ${ORIGTARFILE} "${TARDIR}" + +mv ${ORIGTARFILE} ${PARENTDIR} + +rm -rf ${TARDIR} +cd ${CURDIR} +rm -rf ${TMPDIR} + +echo "Unpacked source JARs in ../${ORIGTARFILE}" + +exit 0 diff --git a/debian/watch b/debian/watch index b815643..755ec80 100644 --- a/debian/watch +++ b/debian/watch @@ -4,4 +4,5 @@ dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\ uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/,\ repacksuffix=+ds \ http://sf.net/jts-topo-suite/ \ -(?:.*?/)?jts[_\.\-\+]?(\d\S+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) +(?:.*?/)?jts[_\.\-\+]?(\d\S+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) \ +debian debian/unpack-source-jars -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/jts.git _______________________________________________ Pkg-grass-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

