(PACKAGE): New variable.
authortomo <tomo>
Thu, 1 Aug 2002 09:51:33 +0000 (09:51 +0000)
committertomo <tomo>
Thu, 1 Aug 2002 09:51:33 +0000 (09:51 +0000)
(VERSION): New variable.
(TAR): New variable.
(tar): New target.

Makefile

index d27eb07..cdee606 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,14 @@
 # Makefile for LEIM
 #
 
+PACKAGE = lemi
+VERSION        = 1.14.1
+
+TAR    = tar
+RM     = /bin/rm -f
+
 EMACS  = emacs
 FLAGS   = -batch -q -no-site-file -l lemi-path.el
-RM     = /bin/rm -f
 
 GARBAGES = */*.elc
 
@@ -13,3 +18,17 @@ elc:
 
 clean:
        -$(RM) $(GARBAGES)
+
+tar:
+       cvs commit
+       sh -c 'cvs tag -R $(PACKAGE)-`echo $(VERSION) | tr . _`; \
+       cd /tmp; \
+       cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/root \
+               export -d $(PACKAGE)-$(VERSION) \
+               -r $(PACKAGE)-`echo $(VERSION) | tr . _` \
+               lemi'
+       cd /tmp; \ # $(RM) $(PACKAGE)-$(VERSION)/ftp.in ; \
+               $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
+       cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)
+#      sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" \
+#              | sed "s/PACKAGE/$(PACKAGE)/" > ftp