Changed how version number is calculated.
Added explicit creation of Releases directory in case it is missing.
1 parent d0831bb commit f20d3135d96f6e427a4c0285b8b705085d562917
@tundra tundra authored on 29 May 2012
Showing 1 changed file
View
11
makefile
# Build a release of tconfpy using 'make'
# $Id: makefile,v 1.106 2012/05/26 00:01:38 tundra Exp $
# $Id: makefile,v 1.107 2012/05/29 14:18:43 tundra Exp $
# Requires a modern 'make' like GNU.
 
 
# Uncomment One Of The Following For Early Releases
 
DIR = ${PORTNAME}-${VERSION}
HEADER1 = "WHATSNEW For '${PROGNAME}' ${VERSION} (`date`)"
HEADER2 = "----------------------------------------------------------------------"
RELDIR = "Releases"
TARBALL = ${DIR}.tar.gz
TMPFILE = tmpfile
VERSION = $(shell cvs log ${PROGNAME}.py | grep head | cut -f 2 -d " ")${EARLY}
VERSION = $(shell grep '$Id: makefile,v 1.107 2012/05/29 14:18:43 tundra Exp ${PROGNAME}.py | cut -f 5 -d " ")${EARLY}
 
 
 
#####
# Pattern Rules
@mkdir ${DIR}
@mv ${DOCFILES} ${PROGFILES} ${SRCFILES} ${SUPPFILES} ${DIR}
@tar -czvf ${TARBALL} ${DIR}
@rm -rf ${DIR}
@mv ${DIR}.tar.gz Releases
@mkdir ${RELDIR}
@mv ${DIR}.tar.gz ${RELDIR}