I randomly got the idea the other day to write a "Version Incrementer" in PHP for all my PHP projects.
I keep all my projects in my /Projects folder, and have to update each project file's docblock after every revision. Instead of tediously going through each file and changing the build, date, and version, I just wrote this simple script that will list all your projects, sort them by "@package," and then by "@version". I'm hoping to add other functions to this as well, instead of just updating the @version parameter. I'm hoping to make it a project-wide pear-style docblock updater/configurator.
For conflicting versions, it gives you the option to update all project files specific to that "@package" with one of versions listed.
You can also choose to ignore certain directories in your projects folder, for projects that don't use Pear-style docblocks, are written in a different language, or just simply don't need to be managed.
Demo Here - Download Source
Help on everything from the syntax of things, my crappy coding style (I threw this together in a couple hours! ), and everything else related to the project would be much appreciated. I hope you guys like it!
I keep all my projects in my /Projects folder, and have to update each project file's docblock after every revision. Instead of tediously going through each file and changing the build, date, and version, I just wrote this simple script that will list all your projects, sort them by "@package," and then by "@version". I'm hoping to add other functions to this as well, instead of just updating the @version parameter. I'm hoping to make it a project-wide pear-style docblock updater/configurator.
For conflicting versions, it gives you the option to update all project files specific to that "@package" with one of versions listed.
You can also choose to ignore certain directories in your projects folder, for projects that don't use Pear-style docblocks, are written in a different language, or just simply don't need to be managed.
Demo Here - Download Source
Help on everything from the syntax of things, my crappy coding style (I threw this together in a couple hours! ), and everything else related to the project would be much appreciated. I hope you guys like it!