oldrepo/clone-witcom.sh

139 lines
4.7 KiB
Bash
Raw Normal View History

2018-01-28 23:36:22 -06:00
#!/bin/bash
2018-01-29 01:12:50 -06:00
ARGV1=$1
BASEPATH=`pwd`
cd $BASEPATH
2018-01-28 23:36:22 -06:00
# Check to see if the directory already exists and has a working .git directory
checkforgit()
{
# log_action_end_msg "$1" ${2:+"$2"}
path=$1
if [ -d $path ]; then
echo $path already exists
2018-01-29 01:12:50 -06:00
if [ "$ARGV1" = update ] ; then
cd $path
git pull
git submodule update --init --recursive
cd $BASEPATH
fi
2018-01-28 23:36:22 -06:00
return 0
else
echo $path does not exist. need to git clone here
return -1
fi
}
gitclone()
{
# log_action_end_msg "$1" ${2:+"$2"}
src=$1
path=$2
if checkforgit $path ; then
return -1;
fi
git clone $src $path
result=$?
echo git clone returned $result
return $result
}
2018-01-31 05:15:33 -06:00
gitclonefail()
{
src=$1
path=$2
2018-01-31 05:17:52 -06:00
gitclone $src $path
2018-01-31 05:15:33 -06:00
# make the directory on machines that don't have permissions so these
# repositories are just ignored in the future
mkdir -p $path
}
2018-01-28 23:36:22 -06:00
gitupdate()
{
src=$1
path=$2
#echo path=$path
#echo src=$src
cd $path ; git update
}
witgitclone()
{
base=$1
path=$2
#echo base src=$base
#echo path=$path
if checkforgit $path ; then
return -1;
fi
src='ssh://root@ping.wit.com/var/lib/'$base
gitclone $src $path
if checkforgit $path ; then
return -1;
fi
src='git://ping.wit.com/'$base
gitclone $src $path
if checkforgit $path ; then
return -1;
fi
src='http://ping.wit.com/'$base
gitclone $src $path
# log_action_end_msg "$1" ${2:+"$2"}
exit 0
}
2018-01-31 05:15:33 -06:00
gitclonefail 'git@github.com:witstartup/resumes.git' 'corp/resumes'
gitclonefail 'git@github.com:witstartup/org-docs.git' 'corp/org-docs'
witgitclone 'git/cloud/witcoredns' 'cloud/witcoredns'
witgitclone 'git/cloud/jcarrbox' 'cloud/jcarrbox'
witgitclone 'git/cloud/bind9dnssec' 'cloud/bind9dnssec'
gitclonefail 'git@github.com:witstartup/debcore.git' 'cloud/debcore'
2018-02-01 23:28:09 -06:00
gitclonefail 'git@github.com:witstartup/gpupoller.git' 'cloud/gpupoller'
gitclonefail 'https://github.com/coredns/unbound' 'cloud/coredns-unbound'
gitclonefail 'https://github.com/miekg/unbound.git' 'cloud/coredns-miekg-unbound'
2018-01-31 05:15:33 -06:00
gitclonefail 'git@github.com:witstartup/AndroidApp.git' 'phone/AndroidApp'
gitclonefail 'git@github.com:witstartup/webrtc-example.git' 'phone/webrtc-example'
gitclonefail 'git@github.com:witstartup/group-chat.git' 'phone/group-chat'
gitclonefail 'git@github.com:witstartup/http-https-tunnel.git' 'phone/http-https-tunnel'
gitclonefail 'git@github.com:witstartup/webproxy.git' 'phone/webproxy'
gitclonefail 'git@github.com:witstartup/liveblock.git' 'crypto/bitcoin-liveblock'
2018-02-04 20:25:40 -06:00
gitclonefail 'git@github.com:witstartup/witchain.git' 'crypto/witchain'
2018-01-31 05:15:33 -06:00
witgitclone 'git/crypto/realtime-crypto-data' 'crypto/realtime-crypto-data'
witgitclone 'git/crypto/mining-binaries' 'crypto/mining-binaries'
2018-02-02 06:04:51 -06:00
gitclonefail 'https://github.com/ethereum-mining/ethminer.git' 'crypto/mining-code/ethminer'
gitclonefail 'https://github.com/ethereum/cpp-ethereum' 'crypto/mining-code/cpp-ethereum'
gitclonefail 'https://github.com/vthoang/cgminer.git' 'crypto/mining-code/cgminer-vthoang'
gitclonefail 'https://github.com/ckolivas/cgminer.git' 'crypto/mining-code/cgminer-ckolivas'
gitclonefail 'https://github.com/zcash/zcash.git' 'crypto/mining-code/zcash'
2018-02-03 20:21:36 -06:00
gitclonefail 'https://github.com/nicehash/sgminer.git' 'crypto/mining-code/nicehash-sgminer'
2018-01-31 05:15:33 -06:00
2018-02-03 05:25:45 -06:00
gitclonefail 'git@github.com:witstartup/VirtexEval.git' 'fpga/VirtexEval'
gitclonefail 'https://github.com/ReconfigureIO/examples' 'fpga/ReconfigureIO-examples'
2018-01-31 05:15:33 -06:00
gitclonefail 'git@github.com:witstartup/www.wit.com.git' 'website/www.wit.com'
2018-02-01 00:24:39 -06:00
gitclonefail 'git@github.com:witstartup/db.wit.com.git' 'website/db.wit.com'
2018-01-31 05:15:33 -06:00
gitclonefail 'git@github.com:witstartup/witcoin.git' 'website/witcoin'
2018-02-01 23:12:50 -06:00
gitclonefail 'git@github.com:witstartup/webrtc-example.git' 'website/webrtc-example'
2018-02-01 21:27:31 -06:00
witgitclone 'git/website/ping.wit.com' 'website/ping.wit.com'
2018-02-02 05:23:09 -06:00
witgitclone 'git/website/jcarr/check.jcarr.wit.com' 'website/jcarr/check.jcarr.wit.com'
2018-02-02 06:19:31 -06:00
witgitclone 'git/website/jcarr/1200-hugo-xmin' 'website/jcarr/1200-hugo-xmin'
witgitclone 'git/website/jcarr/1201-hugo-ananke' 'website/jcarr/1201-hugo-ananke'
witgitclone 'git/website/jcarr/1202-hugo-jefftest' 'website/jcarr/1202-hugo-jefftest'
witgitclone 'git/website/jcarr/3000-simple-trello' 'website/jcarr/3000-simple-trello'
witgitclone 'git/website/jcarr/8443-webrtc-example' 'website/jcarr/8443-webrtc-example'
2018-01-29 01:42:48 -06:00
2018-01-29 00:52:10 -06:00
exit 0