[saods9] 01/01: Replace custom repack script by Files-Excluded:

Ole Streicher olebole at moszumanska.debian.org
Thu Jun 11 09:12:23 UTC 2015


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

olebole pushed a commit to branch experimental
in repository saods9.

commit e5881e14af56bf9f81e989ee4488e003f2a622da
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Thu Jun 11 11:13:25 2015 +0200

    Replace custom repack script by Files-Excluded:
---
 debian/copyright |  3 +++
 debian/repack.sh | 27 ---------------------------
 debian/watch     |  8 +++-----
 3 files changed, 6 insertions(+), 32 deletions(-)

diff --git a/debian/copyright b/debian/copyright
index c1c7890..f80c849 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,6 +2,9 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: SAOImage DS9
 Upstream-Author: William Joye <wjoye at cfa.harvard.edu>
 Source: http://ds9.si.edu/site/Download.html
+Files-Excluded: funtools* tcl8.* tcllib-* tk8.* tkimg* signal_ext*
+ tktable* tkcon-* tclxml-* wcssubs-* xpa-* tkblt* win zip-* zlib-*
+ compilers ast-* zvfs tkmacosx*
 
 Files: *
 Copyright: Copyright (C) 1999-2012 Smithsonian Astrophysical Observatory,
diff --git a/debian/repack.sh b/debian/repack.sh
deleted file mode 100755
index 091ddfc..0000000
--- a/debian/repack.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-# ./debian/repack
-# Repackage the DS9 source files, with unnecessary files removed. 
-
-ver=$2
-orig_tar=$3
-tardir=$(dirname $orig_tar)
-wd=$(mktemp -d)
-echo $ver $orig_tar $tardir $wd
-
-tar xf $orig_tar -C $wd 
-srcdir=$wd/*
-
-for subdir in funtools\* tcl8.\* tcllib-\* tk8.\* tkimg\* signal_ext\* \
-              tktable\* tkcon-\* tclxml-\* wcssubs-\* xpa-\* tkblt\* win \
-              zip-\* zlib-\* compilers ast-\* zvfs tkmacosx\* ; do
-    rm -rf $srcdir/$subdir
-done
-
-find $srcdir/ -name config.status |xargs rm -f
-find $srcdir/ -name conf.h |xargs rm -f
-
-dfsg_tar=$tardir/saods9_$ver+repack.orig.tar.xz
-tar cJf $dfsg_tar -C $wd .
-rm -rf $wd
-
-exec uupdate --no-symlink --upstream-version $ver+repack $dfsg_tar
diff --git a/debian/watch b/debian/watch
index edb2c71..9f9b37a 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,8 +1,6 @@
 version=3
-#opts=dversionmangle=s/\+repack// \
+#opts=dversionmangle=s/\+repack//,repacksuffix=+dfsg \
 #    http://ds9.si.edu/site/Download.html \
-opts=dversionmangle=s/\+repack//,uversionmangle=s/(.+)([ab].+)/$1~$2/ \
+opts=dversionmangle=s/\+repack//,repacksuffix=+dfsg,uversionmangle=s/(.+)([ab].+)/$1~$2/ \
     http://ds9.si.edu/site/Beta.html \
-    http://ds9.si.edu/.+/source/ds9\.(.*)\.tar\.gz \
-    debian \
-    debian/repack.sh
+    http://ds9.si.edu/.+/source/ds9\.(.*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/saods9.git



More information about the debian-science-commits mailing list