tools: vpp download and installation script
[csit.git] / resources / tools / download_install_vpp_pkgs.sh
1 #!/bin/sh
2
3 # Copyright (c) 2016 Cisco and/or its affiliates.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 set -x
17
18 URL="https://nexus.fd.io/service/local/artifact/maven/content"
19 VER="RELEASE"
20 REPO="fd.io.dev"
21 GROUP="io.fd.vpp"
22 ARTIFACTS="vpp vpp-dbg vpp-dev vpp-dpdk-dev vpp-dpdk-dkms vpp-lib"
23 PACKAGE="deb deb.md5"
24
25 for ART in ${ARTIFACTS}; do
26     for PAC in $PACKAGE; do
27         curl "${URL}?r=${REPO}&g=${GROUP}&a=${ART}&p=${PAC}&v=${VER}" -O -J || exit
28     done
29 done
30
31 for FILE in *.deb; do
32     echo " "${FILE} >> ${FILE}.md5
33 done
34
35 for MD5FILE in *.md5; do
36     md5sum -c ${MD5FILE} || exit
37 done
38
39 echo sudo dpkg -i *.deb
40