From: Thomas Goirand Date: Sat, 7 Jul 2012 18:29:01 +0000 (+0000) Subject: Added a get-vcs-source target in debian/rules X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=581e4e980c8657cfd4e2cc05ce4245d8f192bb67;p=openstack-build%2Fhorizon-build.git Added a get-vcs-source target in debian/rules Rewritten-From: 74319a7c8a350c1c9255dab7395f1721deb1aa7c --- diff --git a/xenial/debian/changelog b/xenial/debian/changelog index d05e72f..cfb5756 100644 --- a/xenial/debian/changelog +++ b/xenial/debian/changelog @@ -3,6 +3,7 @@ horizon (2012.1.1-3) unstable; urgency=low * Added missing (build-)dependencies (took what was in the Ubuntu package and which seems to be missing in Debian). * Fixed missing license in debian/copyright. + * Added a get-vcs-source target in debian/rules. -- Thomas Goirand Fri, 06 Jul 2012 18:03:53 +0000 diff --git a/xenial/debian/rules b/xenial/debian/rules index 53d7716..8923797 100755 --- a/xenial/debian/rules +++ b/xenial/debian/rules @@ -30,3 +30,13 @@ override_dh_auto_clean: rm -rf $(CURDIR)/horizon/build rm -rf $(CURDIR)/horizon.egg-info rm -rf $(CURDIR)/openstack_dashboard/openstack_dashboard.egg-info + +get-vcs-source: + git remote add upstream git://github.com/openstack/horizon.git || true + git fetch upstream + git archive --prefix=horizon-2012.1.1/ 2012.1.1 | xz >../horizon_2012.1.1.orig.tar.xz + if ! git checkout master ; then \ + echo "No upstream branch: checking out" ; \ + git checkout -b master upstream/master ; \ + fi + git checkout debian/unstable