Skip to content

Commit 2d0407b

Browse files
committed
Perform git pull on artdaq branches in setup_spack_build_system. Update quick-spack-start scripts sha1sum
1 parent 090ef29 commit 2d0407b

File tree

6 files changed

+19
-32
lines changed

6 files changed

+19
-32
lines changed

tools/art-suite-spack-start_v0.28.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if [[ "x$build_system_script" == "x" ]];then
103103
build_system_script=$Base/setup_spack_build_system_v0.28.sh
104104
fi
105105

106-
echo "fee1e3b2de18c535f9800b66e5007bb0f5cbfe5a *$build_system_script" | sha1sum -c -
106+
echo "5bfade30fa8b3da95d2f904a17e602f033c326b5 *$build_system_script" | sha1sum -c -
107107
if [ $? -ne 0 ]; then
108108
echo "ERROR: setup_spack_build_system_v0.28.sh does not have the expected checksum! Please check Github for updates to this script!"
109109
exit 1

tools/art-suite-spack-start_v1.1.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if [[ "x$build_system_script" == "x" ]];then
101101
build_system_script=$Base/setup_spack_build_system_v1.1.sh
102102
fi
103103

104-
echo "d49e9cce2e3484e0150e558a3c7b5de9fe341ca2 *$build_system_script" | sha1sum -c -
104+
echo "ce1d0c139329e507b81af324aff6682880c184d5 *$build_system_script" | sha1sum -c -
105105
if [ $? -ne 0 ]; then
106106
echo "ERROR: setup_spack_build_system_v1.1.sh does not have the expected checksum! Please check Github for updates to this script!"
107107
exit 1

tools/quick-spack-start_v0.28.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ if [[ "x$build_system_script" == "x" ]];then
149149
build_system_script=$Base/setup_spack_build_system_v0.28.sh
150150
fi
151151

152-
echo "fee1e3b2de18c535f9800b66e5007bb0f5cbfe5a *$build_system_script" | sha1sum -c -
152+
echo "5bfade30fa8b3da95d2f904a17e602f033c326b5 *$build_system_script" | sha1sum -c -
153153
if [ $? -ne 0 ]; then
154154
echo "ERROR: setup_spack_build_system_v0.28.sh does not have the expected checksum! Please check Github for updates to this script!"
155155
exit 1

tools/quick-spack-start_v1.1.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ if [[ "x$build_system_script" == "x" ]];then
149149
build_system_script=$Base/setup_spack_build_system_v1.1.sh
150150
fi
151151

152-
echo "d49e9cce2e3484e0150e558a3c7b5de9fe341ca2 *$build_system_script" | sha1sum -c -
152+
echo "ce1d0c139329e507b81af324aff6682880c184d5 *$build_system_script" | sha1sum -c -
153153
if [ $? -ne 0 ]; then
154154
echo "ERROR: setup_spack_build_system_v1.1.sh does not have the expected checksum! Please check Github for updates to this script!"
155155
exit 1

tools/setup_spack_build_system_v0.28.sh

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ function install_spack_build_system()
1010
git clone https://github.com/art-daq/spack.git -b eflumerf/FixPerlPackageStash
1111
)
1212
else
13-
#cd $spackdir && git pull && cd $Base
14-
cd $spackdir && git fetch -a && git checkout eflumerf/FixPerlPackageStash ; cd $Base
13+
cd $spackdir && git checkout eflumerf/FixPerlPackageStash && git pull ; cd $Base
1514
fi
1615

1716
cat >setup-env.sh <<-EOF
@@ -23,20 +22,14 @@ EOF
2322
source setup-env.sh
2423

2524
if ! [ -d fermi-spack-tools ]; then
26-
#git clone https://github.com/FNALssi/fermi-spack-tools.git # Upstream
27-
#cd fermi-spack-tools && git checkout 965e0e73896328f8137c2bd53bad77a42b39e0bf; cd $Base
28-
git clone https://github.com/art-daq/fermi-spack-tools.git # Fork
29-
cd fermi-spack-tools && git checkout artdaq/Spack0.28; cd $Base
25+
git clone https://github.com/art-daq/fermi-spack-tools.git -b artdaq/Spack0.28
3026
else
31-
#cd fermi-spack-tools && git fetch -a && git checkout 965e0e73896328f8137c2bd53bad77a42b39e0bf ; cd $Base # Upstream
32-
cd fermi-spack-tools && git fetch -a && git checkout artdaq/Spack0.28 ; cd $Base # Fork
27+
cd fermi-spack-tools && git checkout artdaq/Spack0.28 && git pull ; cd $Base
3328
fi
3429
if ! [ -d spack-mpd ]; then
35-
# git clone https://github.com/FNALssi/spack-mpd.git # Upstream
36-
git clone https://github.com/art-daq/spack-mpd.git # Fork
37-
cd spack-mpd && git checkout artdaq/Spack0.28; cd $Base
30+
git clone https://github.com/art-daq/spack-mpd.git -b artdaq/Spack0.28
3831
else
39-
cd spack-mpd && git fetch -a && git checkout artdaq/Spack0.28; cd $Base
32+
cd spack-mpd && git checkout artdaq/Spack0.28 && git pull; cd $Base
4033
fi
4134

4235
os=$(spack arch -o)
@@ -81,7 +74,7 @@ EOF
8174
git clone https://github.com/art-daq/artdaq-spack.git -b artdaq/Spack0.28
8275
spack repo add ./artdaq-spack
8376
else
84-
cd artdaq-spack && git fetch -a && git checkout artdaq/Spack0.28; cd $Base/spack-repos
77+
cd artdaq-spack && git checkout artdaq/Spack0.28 && git pull; cd $Base/spack-repos
8578
fi
8679

8780
repo_found=`spack repo list|awk '{print $1}'|grep -c mu2e-spack`
@@ -90,7 +83,7 @@ EOF
9083
git clone https://github.com/Mu2e/mu2e-spack.git -b artdaq/Spack0.28
9184
spack repo add ./mu2e-spack
9285
else
93-
cd mu2e-spack && git fetch -a && git checkout artdaq/Spack0.28; cd ${Base}/spack-repos
86+
cd mu2e-spack && git checkout artdaq/Spack0.28 && git pull; cd ${Base}/spack-repos
9487
fi
9588
cd $Base
9689

tools/setup_spack_build_system_v1.1.sh

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function install_spack_build_system()
1212
git clone https://github.com/art-daq/spack.git -b artdaq/Spack1.1
1313
)
1414
else
15-
#cd $spackdir && git pull && cd $Base
16-
cd $spackdir && git fetch -a && git checkout artdaq/Spack1.1 ; cd $Base
15+
cd $spackdir && git checkout artdaq/Spack1.1 && git pull; cd $Base
1716
fi
1817

1918
cat >setup-env.sh <<-EOF
@@ -27,19 +26,14 @@ EOF
2726
source setup-env.sh
2827

2928
if ! [ -d fermi-spack-tools ]; then
30-
#git clone https://github.com/FNALssi/fermi-spack-tools.git # Upstream
31-
#cd fermi-spack-tools && git checkout 965e0e73896328f8137c2bd53bad77a42b39e0bf; cd $Base
32-
git clone https://github.com/art-daq/fermi-spack-tools.git # Fork
33-
cd fermi-spack-tools && git checkout artdaq/Spack1.1; cd $Base
29+
git clone https://github.com/art-daq/fermi-spack-tools.git -b artdaq/Spack1.1
3430
else
35-
#cd fermi-spack-tools && git fetch -a && git checkout 965e0e73896328f8137c2bd53bad77a42b39e0bf ; cd $Base # Upstream
36-
cd fermi-spack-tools && git fetch -a && git checkout artdaq/Spack1.1 ; cd $Base # Fork
31+
cd fermi-spack-tools && git checkout artdaq/Spack1.1 && git pull; cd $Base
3732
fi
3833
if ! [ -d spack-mpd ]; then
39-
git clone https://github.com/art-daq/spack-mpd.git # Fork
40-
cd spack-mpd && git checkout artdaq/Spack1.1; cd $Base
34+
git clone https://github.com/art-daq/spack-mpd.git -b artdaq/Spack1.1
4135
else
42-
cd spack-mpd && git fetch -a && git checkout artdaq/Spack1.1; cd $Base
36+
cd spack-mpd && git checkout artdaq/Spack1.1 && git pull; cd $Base
4337
fi
4438

4539
os=$(spack arch -o)
@@ -75,7 +69,7 @@ EOF
7569
git clone https://github.com/art-daq/spack-packages.git -b artdaq/Spack1.1
7670
spack repo add ./spack-packages/repos/spack_repo/builtin
7771
else
78-
cd spack-packages && git fetch -a && git checkout artdaq/Spack1.1; cd $Base/spack-repos
72+
cd spack-packages && git checkout artdaq/Spack1.1 && git pull; cd $Base/spack-repos
7973
fi
8074

8175
repo_found=`spack repo list|grep -c spack-repos/fnal_art`
@@ -104,7 +98,7 @@ EOF
10498
git clone https://github.com/art-daq/artdaq-spack.git -b artdaq/Spack1.1
10599
spack repo add ./artdaq-spack/spack_repo/artdaq_spack
106100
else
107-
cd artdaq-spack && git fetch -a && git checkout artdaq/Spack1.1; cd $Base/spack-repos
101+
cd artdaq-spack && git checkout artdaq/Spack1.1 && git pull; cd $Base/spack-repos
108102
fi
109103

110104
repo_found=`spack repo list|grep -c spack-repos/mu2e-spack`
@@ -113,7 +107,7 @@ EOF
113107
git clone https://github.com/Mu2e/mu2e-spack.git -b artdaq/Spack1.1
114108
spack repo add ./mu2e-spack/spack_repo/mu2e_spack
115109
else
116-
cd mu2e-spack && git fetch -a && git checkout artdaq/Spack1.1; cd ${Base}/spack-repos
110+
cd mu2e-spack && git checkout artdaq/Spack1.1 && git pull; cd ${Base}/spack-repos
117111
fi
118112
cd $Base
119113

0 commit comments

Comments
 (0)