Remons TechNotes

Handy Shell Scripts – part I – svntag.sh

Everyone has ’em. Well, maybe not EVERYONE, but a good many of us, programmers do; those handy little scripts and one-liners that make our jobs a little easier.

The first I’d like to share is one I use daily about a dozen times; svntag.sh

See the gist on github.

After committing the latest changes to my software, I make a tag of it for installing/deployment. Instead of typing the svn copy command again and again and running the risk of creating a duplicate tag, I use

Shell commandsvntag.sh 1.2.3 New release for the public

Now a new tag is created after having checked if it does’t already exist.

Just remember; This script works for me, but it might not for you. Don’t hold me responsible if anything goes wrong.

Exit mobile version