Mercurial > hg > Applications > mh
diff papers/mh4/version.sh @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/papers/mh4/version.sh Mon Apr 18 23:46:02 2005 +0900 @@ -0,0 +1,9 @@ +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