# 2012 08 26 Mouse cd libsearchstr # 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=%ai.%h | awk '{print gensub("-","","g",$1) gensub(":","","g",$2) gensub("[+]","e","g",gensub("-","w","g",$3));}'` make depend && make install && make clean # 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