From 9fe649b804fda3e5d49674f8597b8321df03cdbb Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 21 Apr 2008 18:23:02 -0400 Subject: 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= e.g. make dist TARGET=ipa-1-0 442419 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c50b5461a..da9905976 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 -- cgit