(PACKAGE): New variable.
authortomo <tomo>
Wed, 16 Jun 2010 03:08:04 +0000 (03:08 +0000)
committertomo <tomo>
Wed, 16 Jun 2010 03:08:04 +0000 (03:08 +0000)
(tar): New target.

Makefile.in

index 2d78019..5d3a204 100644 (file)
@@ -1,3 +1,4 @@
+PACKAGE = @PACKAGE_NAME@
 VERSION = @PACKAGE_VERSION@
 
 TAR    = tar
@@ -70,3 +71,15 @@ distclean:
        cd GT && make distclean
        -$(RM) Makefile config.status config.log chise-setup-xfonts
        -$(RM) -r autom4te.cache/ intlfonts-1.2.1/ intlfonts-1.2.1.tar.gz
+
+
+tar:
+       cvs commit
+       sh -c 'cvs tag -R $(PACKAGE)-`echo $(VERSION) | tr . _`; \
+       cd /tmp; \
+       cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \
+               export -d $(PACKAGE)-$(VERSION) \
+               -r $(PACKAGE)-`echo $(VERSION) | tr . _` \
+               $(PACKAGE)'
+       cd /tmp; $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
+       cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)