get_srcs.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 DIR=/dune/app/users/bckhouse/dune_dox/
4 
5 do_git()
6 {
7  echo
8  echo $2
9  cd $DIR || exit 1
10 # [ -d $2 ] || git clone ${1}/${2}.git || exit 1
11  if ! [ -d $2 ]
12  then
13  if [[ $1 == *cdcvs* ]]
14  then
15  git clone ${1}/${2} || exit 1
16  else
17  git clone ${1}/${2}.git || exit 1
18  fi
19  fi
20  cd $2
21  if [ $2 == lardataalg ]
22  then
23  git pull $1/${2}.git develop || exit 1
24  else
25  git pull || exit 1
26  fi
27  cd $DIR || exit 1
28 }
29 
30 mkdir -p $DIR || exit 1
31 cd $DIR || exit 1
32 
33 # redmine sources
34 for REPO in nusimdata nutools ifdh-art art messagefacility cetlib fhiclcpp ppfx gallery canvas
35 do
36  # ssh version doesn't work under kcron
37 # do_git ssh://p-larreco@cdcvs.fnal.gov/cvs/projects $REPO
38  do_git http://cdcvs.fnal.gov/projects $REPO
39 done
40 
41 # github larsoft sources
42 for REPO in larsim larrecodnn larreco larcoreobj larcorealg lardataalg lardataobj larsoftobj larwirecell larpandora larg4 larexamples lareventdisplay larcore lardata larevt larana larsoft webevd larutils larbatch larpandoracontent
43 do
44  do_git git@github.com:LArSoft $REPO
45 done
46 
47 # github DUNE sources
48 for REPO in protoduneana dunesw duneexamples duneana dunereco dunecalib dunecore duneopdet dunedataprep dunesim duneutil duneanaobj duneprototypes ND_CAFMaker garsoft garana edep-sim dune-raw-data
49 do
50 # do_git https://github.com/DUNE/ $REPO
51  do_git git@github.com:DUNE $REPO
52 done
53 
54 # TODO can't work out what the http address for this is...
55 #do_git ssh://p-lbne-beamsim@cdcvs.fnal.gov/cvs/projects/lbne-beamsim g4lbne
56 
57 # svn co ssh://p-larreco@cdcvs.fnal.gov/cvs/projects/dk2nu
58 # TODO ifbeam?
59 
60 # TODO probably the wrong versions
61 #git clone https://github.com/Geant4/geant4.git
62 
63 do_git https://github.com/GENIE-MC Generator
64 
65 do_git https://github.com/WireCell wire-cell-build