summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-04-21 18:23:02 -0400
committerRob Crittenden <rcritten@redhat.com>2008-05-09 11:09:21 -0400
commit6b3bb4337fa06f25afeca9c1560546e6c651de2b (patch)
tree0a750639497fcdffc7e7707ce0a6d9003f391d3d /Makefile
parentc5f3764cde136b0828d23bf54a20fcf432c42778 (diff)
downloadfreeipa-6b3bb4337fa06f25afeca9c1560546e6c651de2b.tar.gz
freeipa-6b3bb4337fa06f25afeca9c1560546e6c651de2b.tar.xz
freeipa-6b3bb4337fa06f25afeca9c1560546e6c651de2b.zip
Convert mercurial command to git equivalent for creating an archive.
By default it will use the master branch of the repo this is run from. To specify a different branch use the argument TARGET=<branch> e.g. make dist TARGET=ipa-1-0 442419
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c50b5461..da990597 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ SUBDIRS=ipa-server ipa-admintools ipa-python ipa-client ipa-radius-server ipa-ra
PRJ_PREFIX=ipa
RPMBUILD ?= $(PWD)/rpmbuild
+TARGET ?= master
# After updating the version in VERSION you should run the version-update
# target.
@@ -109,7 +110,7 @@ version-update:
archive:
-mkdir -p dist
- hg archive -t files dist/ipa
+ git archive --format=tar --prefix=ipa/ $(TARGET) | (cd dist && tar xf -)
local-archive:
-mkdir -p dist/ipa