[mapcode] 04/04: Drop unused get-orig-source script.

Bas Couwenberg sebastic at debian.org
Thu Nov 3 18:27:05 UTC 2016


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

sebastic pushed a commit to branch master
in repository mapcode.

commit 16b540205c535f25b1654142f26e41670fd47388
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Nov 3 19:26:18 2016 +0100

    Drop unused get-orig-source script.
---
 debian/changelog       |  1 +
 debian/get-orig-source | 45 ---------------------------------------------
 debian/rules           |  2 --
 3 files changed, 1 insertion(+), 47 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a7a6d63..b3b38cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ mapcode (2.5.1-2) UNRELEASED; urgency=medium
   * Fix watch file and handle common issues.
   * Restructure control file with cme.
   * Reorder fields in copyright file.
+  * Drop unused get-orig-source script.
 
  -- Bas Couwenberg <sebastic at debian.org>  Thu, 03 Nov 2016 19:20:53 +0100
 
diff --git a/debian/get-orig-source b/debian/get-orig-source
deleted file mode 100755
index e486809..0000000
--- a/debian/get-orig-source
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# if you need to repack for whatever reason you can
-# use this script via uscan or directly
-#
-# FIXME: currently the code is not conform to Debian Policy
-#        http://www.debian.org/doc/debian-policy/ch-source.html
-#        "get-orig-source (optional)"
-#        This target may be invoked in any directory, ...
-# --> currently it is assumed the script is called in the
-#     source directory featuring the debian/ dir
-
-COMPRESS=xz
-
-set -e
-NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-
-if ! echo $@ | grep -q upstream-version ; then
-    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
-    uscan --force-download
-else
-    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"`
-    if echo "$VERSION" | grep -q "upstream-version" ; then
-        echo "Unable to parse version number"
-        exit
-    fi
-fi
-
-TARDIR=${NAME}-${VERSION}
-mkdir -p ../tarballs
-cd ../tarballs
-# need to clean up the tarballs dir first because upstream tarball might
-# contain a directory with unpredictable name
-rm -rf *
-tar -xaf ../${TARDIR}.tar.gz
-
-UPSTREAMTARDIR=`find . -mindepth 1 -maxdepth 1 -type d`
-if [ "${UPSTREAMTARDIR}" != "${TARDIR}" ] ; then
-    mv "${UPSTREAMTARDIR}" "${TARDIR}"
-fi
-
-# Remove useless binaries
-# ... do something which needs to be done ...
-
-GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
-rm -rf ${TARDIR}
diff --git a/debian/rules b/debian/rules
index 5fb82a7..32fb4be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,5 +22,3 @@
 override_dh_auto_test:
 	cd unittest && ../obj/unittest
 
-#get-orig-source:
-#	. debian/get-orig-source

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



More information about the Pkg-grass-devel mailing list