Makefile
author Dennis Kaarsemaker <dennis.kaarsemaker@booking.com>
Wed, 03 Dec 2014 09:47:26 +0100
changeset 72 39e9f802eb40
parent 47 bf9d6fa1b1d4
child 89 aa4172c204d4
permissions -rw-r--r--
Add a 'less' command, that does the same as cat, but uses a pager. To avoid code duplication, refactor run_cat to be a thin wrapper around a common function called by both run_cat and run_less.


VERSION := $(shell awk '/VERSION =/ { print $$4 }' shelldap | sed -e "s/[';]//g")

release:
	@mkdir shelldap-${VERSION}
	@cp shelldap shelldap-${VERSION}
	@hg log --style=changelog > shelldap-${VERSION}/ChangeLog
	@pod2text shelldap > shelldap-${VERSION}/README
	@tar -czvf shelldap-${VERSION}.tar.gz shelldap-${VERSION}
	@rm -rf shelldap-${VERSION}