]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Added a get-vcs-source target in debian/rules
authorThomas Goirand <thomas@goirand.fr>
Sat, 7 Jul 2012 18:29:01 +0000 (18:29 +0000)
committerThomas Goirand <thomas@goirand.fr>
Sat, 7 Jul 2012 18:30:04 +0000 (18:30 +0000)
Rewritten-From: 74319a7c8a350c1c9255dab7395f1721deb1aa7c

xenial/debian/changelog
xenial/debian/rules

index d05e72f187f3b312468d3ce1fcbacd50cbfb4fd4..cfb57566fef1ec725186148eb0b9e1f334166bbc 100644 (file)
@@ -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 <zigo@debian.org>  Fri, 06 Jul 2012 18:03:53 +0000
 
index 53d77168d419e5bba6780cc78dee5d2994aed631..892379763c32e2fe0b7caf6030f9a21b648bb932 100755 (executable)
@@ -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