Linux: script to add new files to SVN

Do you add quite often files to your local working copy, forgetting to put them under version control ?

Why not using a tool that, when used, add every new file it finds ?

SVN-ADD-NEW (shell script) could be the answer (very simple)

Create file /usr/local/bin/svn-add-new and paste into it:

Save the file and make it executable.

As soon as the script has been created and made executable you can access your local working copy and execute svn-add-new : the tool will search for new files and will add them to the version control.

Be Aware: this very simple script doesn’t check for good files and bad files, everything it finds will be put under versioning!

Leave a comment