Commit e5c405f8 authored by Joel Rosdahl's avatar Joel Rosdahl
Browse files

Include build date in client version if built from a checked-out CVS module.

Somewhat crude, but maybe nice.
parent 532ef559
......@@ -127,7 +127,11 @@ all: $(TARGET)
vars.el: vars.el.in Makefile
rm -f vars.el
sed 's/@@CLIENTVERSION@@/$(CLIENTVERSION)/g' < vars.el.in > vars.el
if test -d CVS -a x$(DO_RELEASE) = x; then \
sed "s/@@CLIENTVERSION@@/$(CLIENTVERSION) (from CVS; built `date +%Y-%m-%d`)/g" < vars.el.in > vars.el ; \
else \
sed 's/@@CLIENTVERSION@@/$(CLIENTVERSION)/g' < vars.el.in > vars.el ; \
fi
chmod 444 vars.el
%.elc: %.el _header.el
......@@ -172,8 +176,11 @@ install: $(TARGET) $(TARGET-EL)
release: release-files release-move
release-files: $(HEADER) $(SOURCES) $(DISTSRC) $(MISC)
mkdir lyskom-$(CLIENTVERSION)
release-files: clean
$(MAKE) do-release-files DO_RELEASE=1
do-release-files: $(HEADER) $(SOURCES) $(DISTSRC) $(MISC)
mkdir -p lyskom-$(CLIENTVERSION)
cp $(HEADER) $(SOURCES) $(MISC) lyskom-$(CLIENTVERSION)
for i in $(DISTFILES) ; do \
sed 's/@@CLIENTVERSION@@/$(CLIENTVERSION)/g' < distribution-$$i \
......@@ -231,6 +238,6 @@ clean:
lyskom-$(CLIENTVERSION).tar.gz \
lyskom-$(CLIENTVERSION).zip \
lyskom-elisp-client-$(DEBIANCLIENTVERSION)
$(RM) *~ *.elc $(GENERIC-CLEAN)
$(RM) vars.el *.elc $(GENERIC-CLEAN)
$(RM) -r build-stamp lyskom-elisp-client*.gz lyskom-elisp-client*.deb \
lyskom-elisp-client*.dsc lyskom-elisp-client*.changes
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment