From 2e401e9c5499b6e6d546c91ae6c7974b745fd92d Mon Sep 17 00:00:00 2001 From: morioka Date: Wed, 2 Dec 1998 13:19:53 +0000 Subject: [PATCH] (tar): Use `tr' instead of `sed'; use $(API) to generate ftp file. (release): New target. --- Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2baacbf..6b0cff5 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ # PACKAGE = semi -VERSION = 1.11.0 +API = 1.12 +RELEASE = 0 TAR = tar RM = /bin/rm -f @@ -21,6 +22,9 @@ VERSION_SPECIFIC_LISPDIR = NONE GOMI = *.elc +VERSION = $(API).$(RELEASE) +ARC_DIR = /pub/GNU/elisp/semi/semi-$(API)-for-flim-1.12 + elc: $(EMACS) $(FLAGS) -f compile-semi \ @@ -48,15 +52,17 @@ clean: tar: cvs commit - sh -c 'cvs tag -RF $(PACKAGE)-`echo $(VERSION) \ - | sed s/\\\\./_/ | sed s/\\\\./_/`; \ + 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) \ - | sed s/\\\\./_/ | sed s/\\\\./_/` semi' + -r $(PACKAGE)-`echo $(VERSION) | tr . _` + semi' $(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/PACKAGE/$(PACKAGE)/" > ftp + sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" > ftp + +release: + -$(RM) $(ARC_DIR)/$(PACKAGE)-$(VERSION).tar.gz + mv /tmp/$(PACKAGE)-$(VERSION).tar.gz $(ARC_DIR) -- 1.7.10.4