From: <jbo...@li...> - 2006-05-05 15:03:02
|
Author: adamw Date: 2006-05-05 11:02:53 -0400 (Fri, 05 May 2006) New Revision: 4102 Modified: labs/shotoku/trunk/shotoku-svn/hooks/shotoku-update.sh Log: http://jira.jboss.com/jira/browse/JBSHOTOKU-31 Modified: labs/shotoku/trunk/shotoku-svn/hooks/shotoku-update.sh =================================================================== --- labs/shotoku/trunk/shotoku-svn/hooks/shotoku-update.sh 2006-05-05 15:02:20 UTC (rev 4101) +++ labs/shotoku/trunk/shotoku-svn/hooks/shotoku-update.sh 2006-05-05 15:02:53 UTC (rev 4102) @@ -3,9 +3,16 @@ # TRIGGERS A SHOTOKU WC UPDATE ON A GIVEN REMOTE MACHINE # CONFIGURATION +# Username&password to access the servlet USERNAME="ShotokuUpdate" PASSWORD="ShotokuUpdate" +# Address of the shotoku update servlet REMOTE="http://192.168.1.102:8080/shotoku-admin/update" +# Shotoku id of the repository (as in shotoku.properties) +ID=priv +# Prefix of the repository (as in shotoku.properties, relative to the root +# of the whole svn repository, without a slash in the beginning, with a +# trailing slash. REPO_PREFIX="private/adamw/test/" # ------------- @@ -20,9 +27,9 @@ if [ -n "$SVNLOOK_DATA" ] then - POST_DATA="data=priv#$REV#$SVNLOOK_DATA" - - wget -O - --http-user=$USERNAME --http-password=$PASSWORD --post-data="$POST_DATA" $REMOTE >/dev/null + POST_DATA="data=$ID#$REV#$SVNLOOK_DATA" + + wget -O - -o - --http-user=$USERNAME --http-password=$PASSWORD --post-data="$POST_DATA" $REMOTE >/dev/null fi exit 0 |