From: Alexander Barton Date: Fri, 30 Jun 2023 12:05:29 +0000 (+0200) Subject: axify: Update URLs of license files and follow HTTP redirects X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ax-make.git;a=commitdiff_plain;h=75a13bb111a65b80e4545685e5cd0647b86e152d axify: Update URLs of license files and follow HTTP redirects wget(1) follows HTTP redirects by default, so enable this functionality for curl(1), too. --- diff --git a/scripts/axify b/scripts/axify index a9ec269..26ce496 100755 --- a/scripts/axify +++ b/scripts/axify @@ -35,7 +35,7 @@ Download() { echo "Downloading $URL to \"$FILE\" ..." if curl --version >/dev/null 2>&1; then - curl -#o "$FILE" "$URL" && return 0 + curl -#Lo "$FILE" "$URL" && return 0 echo "Failed to download $URL! [curl]" return 1 fi @@ -157,13 +157,13 @@ if [[ ! -e COPYING ]]; then "") ;; "gpl2") - LICENSE_URL="http://www.gnu.org/licenses/gpl-2.0.txt" + LICENSE_URL="https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt" ;; "gpl3") - LICENSE_URL="http://www.gnu.org/licenses/gpl-3.0.txt" + LICENSE_URL="https://www.gnu.org/licenses/gpl-3.0.txt" ;; "lgpl21") - LICENSE_URL="https://www.gnu.org/licenses/lgpl-2.1.txt" + LICENSE_URL="https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt" ;; "lgpl3") LICENSE_URL="https://www.gnu.org/licenses/lgpl-3.0.txt"