view papers/trusted/version.sh @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
line wrap: on
line source

if [ ! -r version ]; then echo 0 > version; fi
touch version
echo '\catcode`\#=12' > version.tex
awk '	{ version = $1 + 1; }\
END	{ printf "\\def\\versiontag/{#1.%d}%%\n", version >> "version.tex"; \
	  printf "%d\n", version > "version"; }' < version
echo '\def\versiondate/{'`date`'}%' >> version.tex
echo '\catcode`\#=6' >> version.tex
echo '\tell{Version \versiontag/ of \versiondate/}' >> version.tex