newer version

This commit is contained in:
ceriel
1986-10-20 17:40:41 +00:00
parent 697ea6d946
commit 5f638d7aac
4 changed files with 21 additions and 23 deletions

8
lang/m2/comp/MakeVersion Executable file
View File

@@ -0,0 +1,8 @@
V=`cat Version.c`
VERSION=`expr "$V" ':' '.*[0-9][0-9]*\.\([0-9][0-9]*\).*'`
NEWVERSION=`expr $VERSION + 1`
sed "s/\.$VERSION/.$NEWVERSION/" < Version.c > tmp$$
mv tmp$$ Version.c
CM "$*"
V=`cat Version.c`
SV > ../versions/V`expr "$V" ':' '.*\([0-9][0-9]*\.[0-9][0-9]*\).*'`