UNH AI Wiki

 

Getting All Repositories

Page history last edited by Ethan Burns 1 yr ago

 

 

Getting All Repositories from UNH-AI:

 

If you're setting up a new machine, taking your laptop on the road to do some work, or want to use all of our code, you'll want to get all of the repositories at once using the following script:

 

 

#!/bin/bash

 

BASE=/home/rai/group/code

HG=hg

 

if test $# != 1

then

    echo "usage: $0 <hostname>"

    exit 1

fi

 

HOST=$1

DIRS=`ssh ${HOST} ls ${BASE}`

 

if test x"${HOST}" != x

then

    HOST="ssh://${HOST}/"

fi

 

for DIR in $DIRS

do

    test -e ${DIR} || {

    echo "${HG} clone ${HOST}${BASE}/${DIR}"

    ${HG} clone ${HOST}${BASE}/${DIR}

    }

done

 

This shell script takes one argument, which is the hostname of the computer that you want to clone from.  This should be a computer that has the rai directory mounted off of mica.cs.unh.edu.  You probably want to use your desktop machine name, but if that is not possible you can use one of ours: cypress.cs.unh.edu or soong.cs.unh.edu.

Comments (0)

You don't have permission to comment on this page.