From: Miroslav Lichvar Date: Wed, 19 Mar 2008 13:34:39 +0000 (+0100) Subject: create archives from git X-Git-Tag: r0-52-9~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b65375f7bc5f94a40d5f06cadd011f2f1cee30fa;p=thirdparty%2Fnewt.git create archives from git --- diff --git a/Makefile.in b/Makefile.in index 5123904..798a5cd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -8,8 +8,7 @@ CPPFLAGS = -D_GNU_SOURCE -I/usr/include/slang @CPPFLAGS@ SHLIBFLAGS= -Wl,--version-script,newt.0.52.ver VERSION = @VERSION@ -CVSTAG = r$(subst .,-,$(VERSION)) -CVSROOT = $(shell cat CVS/Root) +TAG = r$(subst .,-,$(VERSION)) SONAME = @SONAME@ PYTHONVERS = @PYTHONVERS@ @@ -138,8 +137,8 @@ configure: configure.ac newt.spec exit 1 create-archive: configure - @rm -rf /tmp/newt-$(VERSION) /tmp/newt - @cd /tmp; cvs -d $(CVSROOT) export -r$(CVSTAG) newt; mv newt newt-$(VERSION) + @rm -rf /tmp/newt-$(VERSION) + @git archive --prefix=newt-$(VERSION)/ $(TAG) | tar x -C /tmp @cd /tmp/newt-$(VERSION); ./autogen.sh @cd /tmp; tar czSpf newt-$(VERSION).tar.gz newt-$(VERSION) @rm -rf /tmp/newt-$(VERSION) @@ -149,7 +148,7 @@ create-archive: configure @echo "The final archive is ./newt-$(VERSION).tar.gz." tag-archive: - @cvs tag $(CVSTAG) + @git tag $(TAG) archive: tag-archive create-archive