fetch_tarballs.sh (3a7a0c29) | fetch_tarballs.sh (3c6578e9) |
---|---|
1#!/usr/bin/env bash 2#************************************************************** 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 193 unchanged lines hidden (view full) --- 202 echo $UrlHead 203 ;; 204 205 # A full URL represents a single file which is downloaded. 206 ftp:\/\/* | http:\/\/*) 207 download $line 208 ;; 209 | 1#!/usr/bin/env bash 2#************************************************************** 3# 4# Licensed to the Apache Software Foundation (ASF) under one 5# or more contributor license agreements. See the NOTICE file 6# distributed with this work for additional information 7# regarding copyright ownership. The ASF licenses this file 8# to you under the Apache License, Version 2.0 (the --- 193 unchanged lines hidden (view full) --- 202 echo $UrlHead 203 ;; 204 205 # A full URL represents a single file which is downloaded. 206 ftp:\/\/* | http:\/\/*) 207 download $line 208 ;; 209 |
210 # If the line starts with the name of an environment variable than the file is 211 # downloaded only when the variable evaluates to YES. 212 [A-Z0-9_]*:*) 213 prefix=`echo $line | sed 's/:.*$//'` 214 if [ -n "$prefix" ]; then 215 eval value=\$$prefix 216 if [ "x$value" = "xYES" ]; then 217 line=`echo $line | sed 's/^.*://'` 218 download_and_check $UrlHead$line 219 fi 220 fi 221 ;; 222 |
|
210 # Any other line is interpreted as the second part of a partial URL. 211 # It is appended to UrlHead and then downloaded. 212 *) 213 download_and_check $UrlHead$line 214 ;; 215 esac 216done < "$file_list_name" 217 --- 29 unchanged lines hidden --- | 223 # Any other line is interpreted as the second part of a partial URL. 224 # It is appended to UrlHead and then downloaded. 225 *) 226 download_and_check $UrlHead$line 227 ;; 228 esac 229done < "$file_list_name" 230 --- 29 unchanged lines hidden --- |