[xml/sgml-commit] r2225 - in /packages/docbook-defguide/trunk/debian: changelog get-orig-source.sh

dleidert at users.alioth.debian.org dleidert at users.alioth.debian.org
Sun Mar 2 01:32:47 UTC 2014


Author: dleidert
Date: Sun Mar  2 01:32:47 2014
New Revision: 2225

URL: http://svn.debian.org/wsvn/debian-xml-sgml/?sc=1&rev=2225
Log:
* debian/get-orig-source.sh: Added script to retrieve source.

Added:
    packages/docbook-defguide/trunk/debian/get-orig-source.sh   (with props)
Modified:
    packages/docbook-defguide/trunk/debian/changelog

Modified: packages/docbook-defguide/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook-defguide/trunk/debian/changelog?rev=2225&op=diff
==============================================================================
--- packages/docbook-defguide/trunk/debian/changelog	(original)
+++ packages/docbook-defguide/trunk/debian/changelog	Sun Mar  2 01:32:47 2014
@@ -5,6 +5,7 @@
     (Maintainer): Changed to my debian.org address.
     (Standards-Version): Bumped to 3.9.5.
     (Vcs-Browser, Vcs-Svn): Fixed vcs-field-not-canonical.
+  * debian/get-orig-source.sh: Added script to retrieve source.
   * debian/watch: Updated.
 
  -- Daniel Leidert (dale) <daniel.leidert at wgdd.de>  Wed, 20 Jun 2012 00:21:42 +0200

Added: packages/docbook-defguide/trunk/debian/get-orig-source.sh
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook-defguide/trunk/debian/get-orig-source.sh?rev=2225&op=file
==============================================================================
--- packages/docbook-defguide/trunk/debian/get-orig-source.sh	(added)
+++ packages/docbook-defguide/trunk/debian/get-orig-source.sh	Sun Mar  2 01:32:47 2014
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -ex
+
+UPSTREAM_VERSION=$2
+UPSTREAM_VERSION_REV=`echo ${UPSTREAM_VERSION} | sed -e "s/^2.0.17+svn//g"`
+ORIG_TARBALL=$3
+
+REAL_TARBALL=`readlink -f ${ORIG_TARBALL}`
+WORKING_DIR=`dirname ${ORIG_TARBALL}`
+
+ORIG_TARBALL_NEW="${WORKING_DIR}/docbook-defguide_${UPSTREAM_VERSION}.orig.tar.gz"
+ORIG_TARBALL_DIR="${WORKING_DIR}/docbook-defguide-${UPSTREAM_VERSION}.orig"
+ORIG_TARBALL_DIR_STRIP=`basename ${ORIG_TARBALL_DIR}`
+
+[ ! -e ${ORIG_TARBALL_DIR} ] || exit 1
+svn export -r ${UPSTREAM_VERSION_REV} -q --non-interactive --ignore-keywords svn://svn.code.sf.net/p/docbook/code/trunk/defguide ${ORIG_TARBALL_DIR} || exit 1
+
+rm -f ${ORIG_TARBALL} ${REAL_TARBALL}
+GZIP="-n -9" tar --remove-files --directory ${WORKING_DIR} -czf ${ORIG_TARBALL_NEW} ${ORIG_TARBALL_DIR_STRIP} || exit 1
+
+exit 0

Propchange: packages/docbook-defguide/trunk/debian/get-orig-source.sh
------------------------------------------------------------------------------
    svn:executable = *




More information about the debian-xml-sgml-commit mailing list