# 2012 08 26, Mouse cd rotatelog # This next line must be the first line containing the four-character # string it begins with (which I phrase this way to avoid putting it # in this comment and thereby breaking this property). This is # important because the Makefile finds it by searching for the first # line containing that, so it can get the version the same way we do # without having to duplicate the code for it here and there. VER=`cat VERSION`.`git log -1 --abbrev=10 --pretty=%h` : ${LOCALROOT:=/local} mkdir -p $LOCALROOT/.bin/rotatelog-$VER $LOCALROOT/.man/rotatelog-$VER/man1 cp rotatelog $LOCALROOT/.bin/rotatelog-$VER cp rotatelog.1 $LOCALROOT/.man/rotatelog-$VER/man1 # Create updated WHERE_I_CAME_FROM for the sake of publish. sed -e "/^version/s@:.*@: $VER@"\ -e "/^date/s@:.*@: "`date +%Y/%m/%d`@\ < ../WHERE_I_CAME_FROM.master > ../WHERE_I_CAME_FROM