]> arthur.barton.de Git - ax-make.git/commitdiff
axify: Update URLs of license files and follow HTTP redirects
authorAlexander Barton <alex@barton.de>
Fri, 30 Jun 2023 12:05:29 +0000 (14:05 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 30 Jun 2023 12:05:29 +0000 (14:05 +0200)
wget(1) follows HTTP redirects by default, so enable this functionality
for curl(1), too.

scripts/axify

index a9ec26919e4714a37dad23074a24c3e9d48cbcf5..26ce49660fd886173710f59c70c79f8bf15c3eb0 100755 (executable)
@@ -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"