[Python-apps-commits] r14554 - in packages/jeepyb/trunk/debian (rules)
fpytloun-guest at users.alioth.debian.org
fpytloun-guest at users.alioth.debian.org
Fri Jan 5 14:43:14 UTC 2018
Date: Friday, January 5, 2018 @ 14:43:13
Author: fpytloun-guest
Revision: 14554
Add get-orig-source target in d/rules
Modified:
packages/jeepyb/trunk/debian/rules
Modified: packages/jeepyb/trunk/debian/rules
===================================================================
--- packages/jeepyb/trunk/debian/rules 2018-01-05 14:14:38 UTC (rev 14553)
+++ packages/jeepyb/trunk/debian/rules 2018-01-05 14:43:13 UTC (rev 14554)
@@ -6,5 +6,13 @@
export PYBUILD_NAME=jeepyb
export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/jeepyb
+VER_PARSED=$(shell echo 20170923|awk -F '' '{printf $$1$$2$$3$$4 "-" $$5$$6 "-" $$7$$8}')
+
%:
dh $@ --with python2 --buildsystem=pybuild
+
+get-orig-source:
+ git clone https://github.com/openstack-infra/jeepyb.git $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM)
+ (cd $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM) && git checkout `git rev-list -n 1 --before="$(VER_PARSED) 23:59" master`)
+ tar czvf ../$(PYBUILD_NAME)_$(DEB_VERSION_UPSTREAM).orig.tar.gz $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM)/*
+ rm -rf $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM)
More information about the Python-apps-commits
mailing list