Updated for use with CVS instead of RCS.
1 parent 154c885 commit 4fdf0367c1f14a4e88331abf7b416449e4bb3766
@tundra tundra authored on 9 Jun 2012
Showing 1 changed file
View
13
makefile
# Build a release of tconfpy using 'make'
# $Id: makefile,v 1.112 2005/02/02 23:55:47 tundra Exp $
# $Id: makefile,v 1.113 2012/06/09 18:49:09 tundra Exp $
# Requires a modern 'make' like GNU.
 
# Uncomment One Of The Following For Early Releases
 
HEADER1 = "WHATSNEW For '${PROGNAME}' ${VERSION} (`date`)"
HEADER2 = "----------------------------------------------------------------------"
TARBALL = ${DIR}.tar.gz
TMPFILE = tmpfile
VERSION = $(shell rlog -v ${PROGNAME}.py | cut -f 2 -d " ")${EARLY}
VERSION = $(shell cvs log ${PROGNAME}.py | grep ^head\: | cut -f2 -d " ")${EARLY}
 
 
#####
# Pattern Rules
version:
@echo ${VERSION}
 
CHANGELOG.txt:
@rlog ${PROGNAME}.py >CHANGELOG.txt
@cvs log ${PROGNAME}.py >CHANGELOG.txt
 
WHATSNEW.txt:
@co -l $@
@printf "%s\n%s\n\n" ${HEADER1} ${HEADER2} | cat - $@ >${TMPFILE}
@mv ${TMPFILE} $@
@emacs $@
@ci $@
@co $@
@emacs -nw $@
@cvs commit -m${HEADER1} $@
 
docs: ${DOCFILES} ${SUPPFILES}
@chmod 644 ${DOCFILES} ${SUPPFILES}
@chmod 644 *.gz *.txt