4 echo "Usage : ./getarchive [gitPath] [branch] [openValue] [extractTo]"
10 GITSERVER="112.106.1.251" #rsa
11 #GITSERVER="165.213.149.219" #private
12 #GITSERVER="112.106.1.251"
15 ERRFILE="/tmp/gitarchive.err"
16 REMOTE="ssh://${ACCOUNT}@${GITSERVER}/data/git/"
18 modname=`echo $path | rev | cut -d'/' -f1 | rev`
22 echo "Retrieving < $modname >"
23 git archive --prefix=${modname}/ --remote="${REMOTE}${path}" ${branch} --format=tar -o "${modname}.tar"
25 echo -n "done... Extracting..."
26 tar xf "${modname}.tar" -C $4
31 echo "FAIL to retrieve ${path}" >> $ERRFILE
36 if [ "$modname" = "webkit-efl" ] || [ "$modname" = "webkit2-efl" ] ; then
37 rm -rf $4/${modname}/LayoutTests