[med-svn] [abyss] 05/20: Some polishing of get-orig-source
Andreas Tille
tille at debian.org
Thu Sep 21 20:46:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to annotated tag upstream/1.3.1
in repository abyss.
commit d78b30c0f44c04c2999c2ce087ced42f49ba869f
Author: Andreas Tille <tille at debian.org>
Date: Mon Mar 21 09:11:41 2011 +0000
Some polishing of get-orig-source
---
debian/get-orig-source | 9 +++++----
debian/rules | 2 ++
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/get-orig-source b/debian/get-orig-source
index cf32e06..d148835 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -1,10 +1,9 @@
-#!/bin/sh
+#!/bin/sh -e
# creating source tarbal for abacas which comes as plain Perl file
# and needs to be putin to a tarball
PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-set -x
if ! echo $@ | grep -q upstream-version ; then
# if called manually run uscan to obtain file and version number
# VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
@@ -36,11 +35,13 @@ touch -r ../${PKG}.${VERSION}.pl ${PKG}-${VERSION}/${PKG}
rm -f ../${PKG}.${VERSION}.pl
cd ${PKG}-${VERSION}
-wget -N http://abacas.sourceforge.net/Manual.html
+wget -q -N http://abacas.sourceforge.net/Manual.html
sed -i -e 's?index.html">Home?http://abacas.sourceforge.net/&?' \
-e 's?documentation.html">Documentation?http://abacas.sourceforge.net/&?' \
+ -e 's/perl abacas\.pl/abacas/' \
+ -e 's/abacas\.pl/abacas/' \
Manual.html
-wget -N http://abacas.sourceforge.net/style.css
+wget -q -N http://abacas.sourceforge.net/style.css
cd ..
GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "$PKG"-"$VERSION"
diff --git a/debian/rules b/debian/rules
index 100c68c..ef9065a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,5 @@
%:
dh $@
+get-orig-source:
+ . debian/get-orig-source
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/abyss.git
More information about the debian-med-commit
mailing list