Hi guys, I was thinking of writing a very simple script to do version control, but not as we know it.
The idea is to store a version number in a file. The changes in each version will be defined by an manually created script, which can do arbitrary things - install software, create, delete or edit files - whatever.
The version control script will simply check the current version number, see if any later versions are available, and obtain and run the script defining each later version, until the system is up to date.
There is no need for the ability to roll-back to an older version, or update to any version other than the latest. If I manage to break something with an update, I will simply need to write a new version to fix it.
Rather than writing my own script, I thought I could just use a package management system that supports preinstall or postinstall scripts - all I would need to do is create a package for each version which just has a postinstall script that does all the work. Except I'm not sure if there is a package management system that will only upgrade one version at a time - generally they just skip to the latest available version.
I'm curious, does anybody know of an existing VCS that is "script based" like I described?
Alternatively, any particularly simple package management systems that support postinstall scripts? Any that you can force to upgrade one version at a time rather than skipping to the latest available version?