|
|
1.1 ! root 1: #!/bin/csh -f ! 2: # ! 3: # Copyright (c) 1980 Regents of the University of California. ! 4: # All rights reserved. The Berkeley software License Agreement ! 5: # specifies the terms and conditions for redistribution. ! 6: # ! 7: # @(#)newversion.csh 5.1 (Berkeley) 6/5/85 ! 8: # ! 9: # update the version number of your argument makefile, etc. ! 10: # ! 11: if ( $#argv != 2 ) then ! 12: echo "usage: /bin/csh newversion.csh whoami directory" ! 13: exit(1) ! 14: endif ! 15: set whoami = $1 ! 16: set dir = $2 ! 17: set makefile = ${whoami}makefile ! 18: sccs edit $makefile ! 19: set oldversion = `grep "VERSION = " $makefile | sed "s/VERSION = //"` ! 20: cp $makefile /tmp/$$; awk -f newversion.awk < /tmp/$$ > $makefile ; rm /tmp/$$ ! 21: set newversion = `grep "VERSION = " $makefile | sed "s/VERSION = //"` ! 22: echo version $oldversion becomes $newversion automagically. ! 23: sccs delget $makefile << EOF ! 24: version $oldversion becomes $newversion automagically. ! 25: EOF ! 26: mv $dir/${whoami}${oldversion}strings $dir/${whoami}${newversion}strings
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.