I have a script that changes the version number of a lot of files and instead of having to change this version manually every time I run the script I want it to automatically add one to it. This is part of what I have so far:
VerUpdate is a separate program that inserts the number set by VERSION into the file in ISHOPC.
I want the script to take that 4.2.4.6 and make it a 4.2.4.7 the next time I run it and the 4.2.4.8 the next time after that without any input from me besides running the script.
Code:
#!/usr/bin/csh
setenv VERSION 4.2.4.6
VerUpdate -p . ISHOPC -i $VERSION
VerUpdate is a separate program that inserts the number set by VERSION into the file in ISHOPC.
I want the script to take that 4.2.4.6 and make it a 4.2.4.7 the next time I run it and the 4.2.4.8 the next time after that without any input from me besides running the script.