maketag.sh/makebranch.sh: handle https download URLs
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 19 Apr 2021 19:23:30 +0000 (21:23 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 19 Apr 2021 19:23:30 +0000 (21:23 +0200)
Since OpenWrt 21.02 we use https for our download server, detect these
URLs too.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
makebranch.sh
maketag.sh

index e8472d73779e51233ed6288ab71033377f94d90c..4b3ab77ab05425830bb56fc60893c5f8f2c9c901 100755 (executable)
@@ -133,7 +133,7 @@ sed -e 's!^RELEASE:=.*!RELEASE:='"$codename"'!g' \
        include/version.mk > include/version.branch && \
                mv include/version.branch include/version.mk
 
-sed -e 's!http://downloads.\(openwrt\|lede-project\).org/[^"]*!'"$base_url/$version-SNAPSHOT"'!g' \
+sed -e 's!\(http\|https\)://downloads.\(openwrt\|lede-project\).org/[^"]*!'"$base_url/$version-SNAPSHOT"'!g' \
        package/base-files/image-config.in > package/base-files/image-config.branch && \
                mv package/base-files/image-config.branch package/base-files/image-config.in
 
index 72767b8bc63b629a81d6b89335775157c2de2972..5152411f594040ed3ae48d7ab35f03731f8f603e 100755 (executable)
@@ -138,7 +138,7 @@ sed -e 's!\(VERSION_NUMBER:=\$(if .*\),[^,]*)!\1,'"$version"')!g' \
        include/version.mk > include/version.tagged && \
                mv include/version.tagged include/version.mk
 
-sed -e 's!http://downloads.\(openwrt\|lede-project\).org/[^"]*!'"$base_url/$version"'!g' \
+sed -e 's!\(http\|https\)://downloads.\(openwrt\|lede-project\).org/[^"]*!'"$base_url/$version"'!g' \
     -e '/config VERSION_CODE_FILENAMES/ { :next; n; s!default y!default n!; t end; b next }; :end' \
        package/base-files/image-config.in > package/base-files/image-config.tagged && \
                mv package/base-files/image-config.tagged package/base-files/image-config.in