2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
4 # stefan.k.berg@ericsson.com
5 # jonas.bjurel@ericsson.com
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 # Given a file as input, this script verifies that all URIs in the file can
16 echo "Usage: $(basename $0) <filename>"
21 echo "Could not open $1"
25 echo "Checking dependencies in $1"
29 if ! curl -sfr 0-100 $uri > /dev/null; then
30 echo "Failed fetching $uri" >&2
35 if [ $rc -ne 0 ]; then
36 echo "ERROR checking dependencies in $1"
38 echo "Dependencies OK"