view papers/realwork/version.sh @ 4:6bc439d68ff9 utf-8-support

*** empty log message ***
author kono
date Wed, 20 Apr 2005 14:39:40 +0900
parents bce86c4163a3
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