[med-svn] [fastlink] 01/04: Make use of Files-Excluded in get-orig-source
Andreas Tille
tille at debian.org
Sun Jan 10 09:14:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository fastlink.
commit c3573dc6fd8bfaa59009cdb6dbce690bd04954a6
Author: Andreas Tille <tille at debian.org>
Date: Sun Jan 10 10:12:00 2016 +0100
Make use of Files-Excluded in get-orig-source
---
debian/copyright | 12 ++++++++++++
debian/get-orig-source | 21 ++++++++++-----------
2 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/debian/copyright b/debian/copyright
index 2474c06..e9e8e3e 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,6 +2,18 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: ftp://ftp.ncbi.nih.gov/pub/fastlink/fastlink.tar.Z
Upstream-Author: Alejandro Schaffer <schaffer at nchgr.nih.gov>
Homepage: http://www.ncbi.nlm.nih.gov/CBBResearch/Schaffer/fastlink.html
+Files-Excluded: */aix
+ */alphavms
+ */irix
+ */vaxvms
+ *.AIX
+ *.ALPHAVMS
+ *.DOS
+ *.Digital
+ *.IRIX
+ *.VAX
+ *.VMS
+ */.pure
Files: *
Copyright: (C) 2000-2007 Alejandro Schaffer <schaffer at nchgr.nih.gov>
diff --git a/debian/get-orig-source b/debian/get-orig-source
index 5f4b24f..ee05d68 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -3,26 +3,25 @@
NAME=fastlink
UPSTREAMTAR="$NAME".tar.Z
MAINVERSION="4.1P"
+curdir=`pwd`
mkdir -p ../tarballs
cd ../tarballs
-if [ ! -f "$UPSTREAMTAR" ] ; then
- wget ftp://ftp.ncbi.nih.gov/pub/fastlink/fastlink.tar.Z
-fi
+rm -f "$UPSTREAMTAR"
+wget ftp://ftp.ncbi.nih.gov/pub/fastlink/$UPSTREAMTAR
tar -xzf "$UPSTREAMTAR"
PATCHVERSION=`grep -v "^ " fastlink/README.updates | tail -n 1 | sed 's/^\([0-9a-z]\+\)\..*/\1/'`
-UPSTREAMVERSION="${MAINVERSION}-fix${PATCHVERSION}"
+UPSTREAMVERSION="${MAINVERSION}-fix${PATCHVERSION}+dfsg"
UPSTREAMDIR="${NAME}-${UPSTREAMVERSION}"
mv "$NAME" "$UPSTREAMDIR"
-# Remove useless files
-rm -rf "$UPSTREAMDIR"/aix \
- "$UPSTREAMDIR"/4.1P/alphavms \
- "$UPSTREAMDIR"/4.1P/irix \
- "$UPSTREAMDIR"/4.1P/vaxvms
-
-GZIP="--best --no-name" tar -czf "$NAME"_"$UPSTREAMVERSION".orig.tar.gz "$UPSTREAMDIR"
+cd $UPSTREAMDIR
+mkdir debian
+ln -s $curdir/debian/changelog debian/changelog
+ln -s $curdir/debian/copyright debian/copyright
+mk-origtargz --repack --compress xz --version $UPSTREAMVERSION ../$UPSTREAMTAR
+cd ..
rm -rf "$UPSTREAMDIR"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/fastlink.git
More information about the debian-med-commit
mailing list