[Pkg-wmaker-commits] [wmfrog] 109/145: debian/rules: Add get-orig-source target.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sun Aug 23 05:46:35 UTC 2015


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

dtorrance-guest pushed a commit to branch master
in repository wmfrog.

commit 02342205d204c772a8b562da2718f53df51f519f
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Fri Aug 22 20:25:45 2014 -0500

    debian/rules: Add get-orig-source target.
---
 debian/rules | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/debian/rules b/debian/rules
index 9ea6fbc..96fae68 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,24 @@
 override_dh_auto_build:
 	dh_auto_build --sourcedirectory=Src \
 		-- CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"
+
+get-orig-source:
+	@git checkout upstream
+	@git pull https://github.com/tcolar/wmfrog.git
+	@grep -Po '(?<=\#define VERSION ").*(?=\")' wmfrog/Src/wmFrog.c \
+		> version
+	@git show HEAD^:wmfrog/Src/wmFrog.c | \
+		grep -Po '(?<=\#define VERSION ").*(?=\")' > oldversion
+	@if test `cat oldversion` = `cat version` ; then \
+		echo "`cat version`+`date -d @\`git log -1 --pretty=format:%ct\` +%Y%m%d`" > version; \
+	fi
+	@echo "Enter "`cat version`" at the prompt below:"
+	@cd wmfrog; \
+	./builtDist.sh
+	@mv -v wmfrog/dist/wmfrog-`cat version`.tgz ../wmfrog_`cat version`.orig.tar.gz
+	@rm wmfrog/Src/wmfrog
+	@rm version
+	@rm oldversion
+	@git checkout wmfrog/dist/weather.pl
+	@git checkout wmfrog/dist/wmfrog
+	@git checkout master

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmfrog.git



More information about the Pkg-wmaker-commits mailing list