[asymptote] 64/65: add get-orig-source target
This is an automated email from the git hooks/post-receive script.
preining pushed a commit to branch master
in repository asymptote.
commit 07eacabdc0c18a7a7a4f69ee09663d8d2613d75d
Author: Norbert Preining <preining@logic.at>
Date: Thu Nov 7 09:46:03 2013 +0900
add get-orig-source target
---
debian/changelog | 7 +++++--
debian/rules | 20 ++++++++++++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 38ac289..965d372 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,11 +19,14 @@ asymptote (2.23-1) UNRELEASED; urgency=low
[ Norbert Preining ]
* Imported upstream version 2.23
- * switch dependencies to python-pil et al.
+ - remove files that are regenerated during build and removed
* debian/control
- Bump Standards-Version to 3.9.5 (no changes)
+ - switch dependencies to python-pil et al.
+ * debian/rules
+ - add get-orig-source target that removes generated files
- -- Norbert Preining <preining@debian.org> Thu, 07 Nov 2013 09:18:32 +0900
+ -- Norbert Preining <preining@debian.org> Thu, 07 Nov 2013 09:45:27 +0900
asymptote (2.15-2) unstable; urgency=low
diff --git a/debian/rules b/debian/rules
index b5dec7a..d2fdc27 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+PKG=asymptote
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
@@ -28,3 +30,21 @@ clean::
binary-predeb/asymptote::
chmod +x debian/$(cdbs_curpkg)/usr/share/asymptote/asy-kate.sh # script-not-executable
+
+#
+# download current release based on the changelog entry from sf
+# and remove the generated files similarily to the clean target
+# code from the calibre packaging
+get-orig-source:
+ set -e; \
+ V=`dpkg-parsechangelog | sed -rn '/^Version:/ {s/^Version: ([0-9.]+).*$$/\1/; p}'`; \
+ mkdir -p debian/orig; cd debian/orig; \
+ wget -O - https://downloads.sourceforge.net/project/${PKG}/$$V/${PKG}-$$V.src.tgz | gzip -cd | tar x; \
+ D=`pwd`; \
+ cd ${PKG}*; \
+ rm --force doc/latexusage.pdf doc/latexusage.dvi doc/TeXShopAndAsymptote.dvi doc/CAD.dvi; \
+ rm --force doc/*.aux doc/*.cp doc/*.cps doc/*.idx doc/*.ins doc/*.log doc/*.toc asy.list; \
+ rm --force doc/asyRefCard.pdf doc/asyRefCard.dvi;\
+ cd ..;\
+ tar c . | gzip -9 > ../../../${PKG}_$$V.orig.tar.gz; \
+ cd ../..; rm -r debian/orig
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/asymptote.git
Reply to: