create_nurandom.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 # BEFORE YOU RUN THIS SCRIPT:
4 # git clone ssh://p-nutools@cdcvs.fnal.gov/cvs/projects/nutools nurandom
5 # cd nurandom
6 # git remote remove origin
7 # git mv nutools/EventGeneratorBase/GeneratedEventTimestamp_plugin.cc nutools/RandomUtils/GeneratedEventTimestamp_plugin.cc
8 # git mv test/EventGeneratorBase test/GeneratedEventTimestamp
9 # git commit
10 
11 # AFTER EVERYTHING IS WORKING
12 # remote add origin ssh://p-nurandom@cdcvs.fnal.gov/cvs/projects/nurandom
13 # git remote -v
14 # git push -u origin develop
15 
16 # use git-delete-history.sh
17 
18 cd /home/garren/scratch/larsoft/nu/srcs/nurandom
19 /home/garren/larsoft/laradmin/svnToGit/helpers/git-delete-history.sh \
20  tools \
21  nutools/EventDisplayBase \
22  nutools/EventGeneratorBase \
23  nutools/G4Base \
24  nutools/G4NuPhysicsLists \
25  nutools/IFDatabase \
26  nutools/MagneticField \
27  nutools/NuBeamWeights \
28  nutools/NuReweight \
29  nutools/ParticleNavigation
30 
31 git repack -A
32 git gc --aggressive
33 
34 # now rename
35 git mv nutools nurandom
36 
37 exit 0
38