Skip to content

Instantly share code, notes, and snippets.

@napsy
Created April 25, 2011 09:26

Revisions

  1. Luka Napotnik revised this gist Apr 25, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,4 @@ then
    fi
    echo "SVN switching from $OLD to $NEW"

    svn switch --relocate https://$old/trunk https://$new/trunk
    svn switch --relocate https://$OLD/trunk https://$NEW/trunk
  2. Luka Napotnik created this gist Apr 25, 2011.
    20 changes: 20 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/bin/bash

    if [ $# -eq 0 ]
    then
    echo "$0 [home|office]"
    exit
    fi

    if [ $1 == "home" ]
    then
    OLD="XXX"
    NEW="YYY"
    elif [ $1 == "office" ]
    then
    OLD="YYY"
    NEW="XXX"
    fi
    echo "SVN switching from $OLD to $NEW"

    svn switch --relocate https://$old/trunk https://$new/trunk