(PACKAGE): New variable. emacs-canna-1_2
authormorioka <morioka>
Tue, 2 Mar 1999 19:10:09 +0000 (19:10 +0000)
committermorioka <morioka>
Tue, 2 Mar 1999 19:10:09 +0000 (19:10 +0000)
(TAR): New variable.
(RM): New variable.
(CP): New variable.
(tar): New target.

Makefile.in

index 07863a2..6d07082 100644 (file)
@@ -20,6 +20,12 @@ LINKER               = $(CC) -shared -o
 
 VERSION                = 1.2
 
+PACKAGE = emacs-canna
+TAR    = tar
+RM     = /bin/rm -f
+CP     = /bin/cp -p
+
+
 all:   canna.so canna.elc
 
 canna.elc:     canna.el
@@ -44,3 +50,18 @@ install.so:  canna.so
 
 clean:
        -rm -f canna.o canna.so canna.elc
+
+
+tar:
+       cvs commit
+       sh -c 'cvs tag -RF $(PACKAGE)-`echo $(VERSION) | tr . _`; \
+       cd /tmp; \
+       cvs -d :pserver:anonymous@chamonix.jaist.ac.jp:/hare/cvs/root \
+               export -d $(PACKAGE)-$(VERSION) \
+               -r $(PACKAGE)-`echo $(VERSION) | tr . _` \
+               emacs-canna'
+       $(RM) /tmp/$(PACKAGE)-$(VERSION)/ftp.in
+       cd /tmp; $(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