4

Bash SVN Post Commit Hook

view full story
linux-howto

http://serverfault.com – I have a working post-commit hook bash script that syncronises a Trac instance with the latest revision for an SVN commit. #!/bin/sh TRAC="/var/trac/" REPOS="$1" REV="$2" if [[ "$REPOS" = "*TechReader*"]]; then trac-admin $TRAC"techreader" changeset added $REPOS $REV; fi if [[ "$REPOS" = "*InteractEnglish*"]]; then trac-admin $TRAC"interactenglish" changeset added $REPOS $REV; fi trac-admin $TRAC"egloo" changeset added $REPOS $REV The final trac-admin call runs and updates the internal Trac instance as desired but the if statements don't seem to fire the updates for our client instances (HowTos)