Skip to content
Browse files

makefile: force static version in making dist tarball

  • Loading branch information...
1 parent b4e8170 commit ba5b46f6391b2b2f03d1a9f5079b060b69774bdc @falconindy committed May 22, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
View
3 Makefile
@@ -37,12 +37,13 @@ install: cower cower.1
@chmod 755 ${DESTDIR}${PREFIX}/bin/cower
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@printf " %-8s %s\n" INSTALL cower.1
- @sed "s/VERSION/${VERSION}/g" < cower.1 > ${DESTDIR}${MANPREFIX}/man1/cower.1
+ @sed "s/\^VERSION/${VERSION}/g" < cower.1 > ${DESTDIR}${MANPREFIX}/man1/cower.1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/cower.1
dist: clean
@mkdir -p cower-${VERSION}
@cp -R ${SRC} *.h Makefile config.mk README.pod cower-${VERSION}
+ @sed "s/VERSION =.*/VERSION = $(shell git describe)/" < config.mk > cower-${VERSION}/config.mk
@printf " %-8s %s\n" TAR cower-${VERSION}.tar
@tar -cf cower-${VERSION}.tar cower-${VERSION}
@printf " %-8s %s\n" GZIP cower-${VERSION}.tar.gz

0 comments on commit ba5b46f

Please sign in to comment.
Something went wrong with that request. Please try again.