## Makefile for EMchat -*-Makefile-*-
##
-## Copyright (C) 2001 - 2008 Steve Youngs
+## Copyright (C) 2001 - 2010 Steve Youngs
##
## This file is part of EMchat.
## IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PACKAGE = emchat
-VER = 0.9.5
+VER = 0.9.6
SHELL = /bin/sh
# Cygwin # Comment out line above and uncomment the following line
echo ";;; Automatically generated file -- DO NOT EDIT OR DELETE" > $@
echo ";;;###autoload" >> $@
echo "(defconst emchat-version" >> $@
- if [ -d "./{arch}" -a -x `which tla 2>/dev/null` ]; then \
- printf ' "%s"' `tla logs -f|tail -n1` >> $@; \
+ if [ -x `which git 2>/dev/null` ]; then \
+ printf ' "%s"' `git describe` >> $@; \
else \
echo -n ' "$(VER)"' >> $@; \
fi
version: emchat-version.el
emchat-version.texi:
- if [ -d "./{arch}" -a -x `which tla 2>/dev/null` ]; then \
- printf "@set VERSION %s" `tla logs -f|tail -n1|sed s/@/@@/` > $@; \
+ if [ -x `which git 2>/dev/null` ]; then \
+ printf "@set VERSION %s" `git describe` > $@; \
else \
echo "@set VERSION $(VER)" > $@; \
fi