Skip to content

Commit 44f43eb

Browse files
committed
Update bootstrap-osg-test to fetch from source control (SOFTWARE-2232)
1 parent 455dddb commit 44f43eb

File tree

1 file changed

+12
-34
lines changed

1 file changed

+12
-34
lines changed

bootstrap-osg-test

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
UPSTREAM=https://github.com/opensciencegrid
4+
35
on_error_die()
46
{
57
if [ $? -ne 0 ]; then
@@ -11,32 +13,6 @@ on_error_die()
1113
fi
1214
}
1315

14-
if [ $# -lt 1 ]; then
15-
echo "Requires the major version number, i.e. 3.2 for 3.2.0"
16-
echo "usage: $0 <major version> [testing|development]"
17-
exit 1
18-
fi
19-
20-
if [[ $1 =~ ^[0-9]+\.[0-9]+$ ]]; then
21-
version=$1
22-
else
23-
echo "Major version should be in the form of '<number>.<number>, i.e. 3.2"
24-
echo "usage: $0 <major version> [testing|development]"
25-
exit 1
26-
fi
27-
28-
extra_repo=
29-
case $2 in
30-
test|testing) extra_repo='--enablerepo=osg-testing';;
31-
dev|development) extra_repo='--enablerepo=osg-development';;
32-
'') ;;
33-
*)
34-
echo "$0: unknown option '$1'"
35-
echo "usage: $0 <major version> [testing|development]"
36-
exit 1
37-
;;
38-
esac
39-
4016
# Determine platform-specific details
4117
release=`cat /etc/redhat-release`
4218
case $release in
@@ -100,11 +76,13 @@ echo -n 'Verify yum-plugin-priorities... '
10076
rpm --verify yum-plugin-priorities
10177
on_error_die "Could not verify yum-plugin-priorities"
10278

103-
# Always erase and install, to get latest
104-
rpm -e osg-test >/dev/null 2>&1
105-
echo -n "Install osg-test... "
106-
yum -y --quiet $extra_repo install osg-test
107-
on_error_die "Could not install osg-test"
108-
echo -n 'Verify osg-test... '
109-
rpm --verify osg-test
110-
on_error_die "Could not verify osg-test"
79+
cd /tmp
80+
for repo in osg-test osg-ca-generator; do
81+
git clone $UPSTREAM/$repo
82+
on_error_die "Failed to clone $UPSTREAM/$repo"
83+
pushd $repo
84+
make install
85+
on_error_die "Failed to install $repo"
86+
popd
87+
done
88+

0 commit comments

Comments
 (0)