-
Notifications
You must be signed in to change notification settings - Fork 14
/
fetch-jetty
executable file
·46 lines (35 loc) · 1.06 KB
/
fetch-jetty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#
# Fetch the Jetty release to use.
#
. VERSIONS
#
# Exit when any command fails
#
set -e
# Jetty release location
#JETTY_RELDIR=https://build.shibboleth.net/nexus/content/repositories/thirdparty/org/eclipse/jetty/jetty-distribution/$JETTY_RELEASE
JETTY_RELDIR=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$JETTY_RELEASE
JETTY_PREFIX=jetty-home-$JETTY_RELEASE
# Import Jetty project keys
gpg --import JETTY_KEYS
# Fetch everything into a clean download directory
rm -rf jetty-dist
mkdir jetty-dist
cd jetty-dist
# Fetch the Jetty release
wget $JETTY_RELDIR/$JETTY_PREFIX.tar.gz
wget $JETTY_RELDIR/$JETTY_PREFIX.tar.gz.sha1
wget $JETTY_RELDIR/$JETTY_PREFIX.tar.gz.asc
# Verify SHA-1 checksum on Jetty release
#sha1sum --check $JETTY_PREFIX.tar.gz.sha1
#sha1sum --check $JETTY_PREFIX.tar.gz.asc.sha1
cat $JETTY_PREFIX.tar.gz.sha1
echo
sha1sum $JETTY_PREFIX.tar.gz
# Verify GPG signature on Jetty release
gpg --verify $JETTY_PREFIX.tar.gz.asc
# Unpack everything and rename to standard directories
tar xf $JETTY_PREFIX.tar.gz
mv $JETTY_PREFIX dist
# End.