[Pkg-wmaker-commits] [wmsysmon] 01/16: debian/rules: New get-orig-source target to build tarball.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Wed Nov 23 14:03:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmsysmon.
commit 850368d9e263ed855286da63fd5e26d35eaf5764
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Wed Nov 23 08:10:52 2016 -0500
debian/rules: New get-orig-source target to build tarball.
---
debian/rules | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/debian/rules b/debian/rules
index 0103585..cb59b5a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,18 @@
%:
dh $@ --sourcedirectory=src
+
+UPSTREAMGIT=https://github.com/vcaputo/wmsysmon
+PACKAGE=wmsysmon
+
+get-orig-source:
+ wget $(UPSTREAMGIT)/archive/master.tar.gz
+ git checkout upstream
+ git pull $(UPSTREAMGIT)
+ grep -oP '(?<=#define WMSYSMON_VERSION ").*(?=")' src/wmsysmon.c \
+ > version
+ echo "`cat version`+git`date -d @\`git log -1 --pretty=format:%ct\` +%Y%m%d`" > version
+ cat version
+ git checkout master
+ mv -v master.tar.gz ../$(PACKAGE)_`cat version`.orig.tar.gz
+ rm version
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmsysmon.git
More information about the Pkg-wmaker-commits
mailing list