[Pkg-awstats-commits] [awstats] 01/08: Repackage upstream sources with uscan

Sergey Kirpichev sk-guest at moszumanska.debian.org
Sat Dec 28 20:50:56 UTC 2013


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

sk-guest pushed a commit to branch master
in repository awstats.

commit 8de038560f4b3fde268f8b3e8d810a90f2b260b1
Author: Sergey B Kirpichev <skirpichev at gmail.com>
Date:   Fri Oct 18 02:39:57 2013 +0400

    Repackage upstream sources with uscan
---
 debian/orig-tar.exclude |  1 +
 debian/orig-tar.sh      | 21 +++++++++++++++++++++
 debian/watch            |  5 ++---
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/debian/orig-tar.exclude b/debian/orig-tar.exclude
new file mode 100644
index 0000000..c19eae3
--- /dev/null
+++ b/debian/orig-tar.exclude
@@ -0,0 +1 @@
+wwwroot/icon/browser/firefox.png
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..0a54597
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+PKG=awstats
+DIR=$PKG-$2
+TAR=../${PKG}_$2+dfsg.orig.tar.gz
+
+# clean up the upstream tarball
+tar xvf $3
+tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR
+rm -rf $DIR $3
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]
+then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
+
+exit 0
diff --git a/debian/watch b/debian/watch
index d2b3a8e..eb311e0 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,6 +1,5 @@
-# Run the "uscan --report" command to check for upstream updates.
-# (use get-orig-source build target to get source - see README.source)
 version=3
 # use qa.debian.org redirector; see man uscan
 opts=dversionmangle=s/.dfsg//,uversionmangle=s/7\.(\d)/7.$1/ \
-  http://sf.net/awstats/awstats-(.*).tar.gz debian
+  http://sf.net/awstats/awstats-(.*).tar.gz debian \
+  debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/awstats.git



More information about the Pkg-awstats-commits mailing list