1
1
#! /bin/bash
2
2
3
+ UPSTREAM=https://github.com/opensciencegrid
4
+
3
5
on_error_die ()
4
6
{
5
7
if [ $? -ne 0 ]; then
@@ -11,32 +13,6 @@ on_error_die()
11
13
fi
12
14
}
13
15
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
-
40
16
# Determine platform-specific details
41
17
release=` cat /etc/redhat-release`
42
18
case $release in
@@ -100,11 +76,13 @@ echo -n 'Verify yum-plugin-priorities... '
100
76
rpm --verify yum-plugin-priorities
101
77
on_error_die " Could not verify yum-plugin-priorities"
102
78
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