Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- svncd() # directory repo [rev]
- {
- if [ ! -d $1 ]; then
- echo "checking out $1"
- if [ $3 ]; then
- REV="-r $3"
- fi
- process "svn co $REV $2 $1" "checking out $1"
- fi
- cd $1
- if [ $3 ]; then
- process "svn up -r $3" "updating $1 to revision $3"
- fi
- }
- gitcd() # directory repo [rev]
- {
- if [ ! -d $1 ]; then
- process "git clone $2 $1" "checking out $1"
- fi
- cd $1
- if [ $3 ]; then
- process "git fetch" "updating $1"
- process "git checkout $3" "checking out $3 for $1"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement