81c749a9adba15238b01d9c1cc60432d518ea848
# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)newversion.csh 5.1 (Berkeley) %G%
# update the version number of your argument makefile, etc.
echo "usage: /bin/csh newversion.csh whoami directory"
set makefile
= ${whoami}makefile
set oldversion
= `grep "VERSION = " $makefile | sed "s/VERSION = //"`
cp $makefile /tmp
/$$
; awk -f newversion.
awk < /tmp
/$$
> $makefile ; rm /tmp
/$$
set newversion
= `grep "VERSION = " $makefile | sed "s/VERSION = //"`
echo version
$oldversion becomes
$newversion automagically.
sccs delget
$makefile << EOF
version $oldversion becomes $newversion automagically.
mv $dir/${whoami}${oldversion}strings $dir/${whoami}${newversion}strings