]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
create archives from git
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Mar 2008 13:34:39 +0000 (14:34 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 21 Mar 2008 11:58:40 +0000 (12:58 +0100)
Makefile.in

index 51239046773ecc7bfba84396d8145820596de5a2..798a5cda5fa888345ca0e2a22fc58fbf0ef32c72 100644 (file)
@@ -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