1*22253Sdist#!/bin/csh -f
210742Smckusick#
3*22253Sdist# Copyright (c) 1980 Regents of the University of California.
4*22253Sdist# All rights reserved.  The Berkeley software License Agreement
5*22253Sdist# specifies the terms and conditions for redistribution.
6*22253Sdist#
7*22253Sdist#	@(#)newversion.csh	5.1 (Berkeley) 06/05/85
8*22253Sdist#
910742Smckusick#	update the version number of your argument makefile, etc.
1010742Smckusick#
1110742Smckusickif ( $#argv != 2 ) then
1210742Smckusick    echo "usage: /bin/csh newversion.csh whoami directory"
1310742Smckusick    exit(1)
1410742Smckusickendif
1510742Smckusickset whoami = $1
1610742Smckusickset dir = $2
1710742Smckusickset makefile = ${whoami}makefile
1810742Smckusicksccs edit $makefile
1910742Smckusickset oldversion = `grep "VERSION = " $makefile | sed "s/VERSION = //"`
2010742Smckusickcp $makefile /tmp/$$; awk -f newversion.awk < /tmp/$$ > $makefile ; rm /tmp/$$
2110742Smckusickset newversion = `grep "VERSION = " $makefile | sed "s/VERSION = //"`
2210742Smckusickecho version $oldversion becomes $newversion automagically.
2311860Spetersccs delget $makefile << EOF
2410742Smckusickversion $oldversion becomes $newversion automagically.
2510742SmckusickEOF
2610742Smckusickmv $dir/${whoami}${oldversion}strings $dir/${whoami}${newversion}strings
27