[irstlm] 49/146: Added get-source-orig target.
Giulio Paci
giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:37:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
giuliopaci-guest pushed a commit to branch master
in repository irstlm.
commit 8d09b71b3b8d3bc14cab962954a831480e06ede8
Author: Giulio Paci <giuliopaci at gmail.com>
Date: Tue Jan 1 16:06:53 2013 +0100
Added get-source-orig target.
---
debian/rules | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/debian/rules b/debian/rules
index b7b11ff..027d411 100755
--- a/debian/rules
+++ b/debian/rules
@@ -54,5 +54,22 @@ clean::
scripts/Makefile.in \
src/Makefile.in
+IRSTLM_GET_ORIG_TEMPORARY=$(DEB_ROOT)/temporary
+IRSTLM_GET_ORIG_BASENAME=irstlm-5.80.01
+IRSTLM_GET_ORIG_ORIG_PATH=$(DEB_ROOT)/temporary/$(IRSTLM_GET_ORIG_BASENAME)/
+get-orig-source:
+ mkdir -p $(IRSTLM_GET_ORIG_TEMPORARY)
+ cd $(DEB_ROOT) && uscan --no-conf --download-current-version --destdir $(DEB_ROOT)/temporary
+ $(RM) $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).orig.tar.gz
+ mv $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tgz $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar.gz
+ gzip -d $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar.gz
+ tar -f $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar --delete irstlm-5.80.01/scripts/other/astyle_Linux irstlm-5.80.01/scripts/other/astyle_Darwin irstlm-5.80.01/scripts/other/beautify.perl irstlm-5.80.01/scripts/other/
+ gzip $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar
+ mv $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar.gz $$(echo $(IRSTLM_GET_ORIG_BASENAME)+dfsg.orig.tar.gz | sed -e 's/\(.*\)-/\1_/')
+ $(RM) -r $(IRSTLM_GET_ORIG_TEMPORARY)
+
+clean::
+ $(RM) -r $(IRSTLM_GET_ORIG_TEMPORARY)
+
# Needed by upstream build process
CDBS_BUILD_DEPENDS += , zlib1g-dev, dpkg-dev (>= 1.16.1~)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git
More information about the debian-science-commits
mailing list