diff --git a/download_xml_bash.sh b/download_xml_bash.sh index baf2ee20e9..7644a3d68f 100755 --- a/download_xml_bash.sh +++ b/download_xml_bash.sh @@ -21,27 +21,24 @@ LEVEL="$4" REPO="https://cloudsmith.io/~${USER}/repos/" echo "Issuing command: wget -q -O - $REPO${NAME}-${LEVEL}/packages/?q=*${VERSION}*.xml" -my_array=() echo "Show current files that match criteria" ls metadata/${NAME}*-*${VERSION}*xml -la echo "Deleting current files that match criteria" rm metadata/${NAME}*-*${VERSION}*xml echo "Finding files on remote cloudsmith repository" delimiter="href=\"" -delimiter1=".xml\" title" +delimiter1=".xml" my_array=(); while read -r line; do - if [[ $line == *$delimiter* ]] && [[ $line == *$delimiter1* ]]; then + if [[ "$line" =~ ^$delimiter && "$line" =~ $delimiter1.$ ]]; then start=`awk -v a="$line" -v b="$delimiter" 'BEGIN{print index(a,b)}'` start=$((start + ${#delimiter} - 1)) end=`awk -v a="$line" -v b="$delimiter1" 'BEGIN{print index(a,b)}'` end=$((end + 3 - start)) line=${line:$start:$end} my_array+=( $line ); - echo "found: $line" fi -done < <(wget -q -O - "$REPO${NAME}-${LEVEL}/packages/?q=*${VERSION}*xml+tag:latest&page_size=50") - +done < <(wget -q -O - "${REPO}${NAME}-${LEVEL}/packages/?q=*${VERSION}*") echo "Downloading files found that match criteria" for URL in "${my_array[@]}" do @@ -49,5 +46,4 @@ do wget --progress=bar:force:noscroll -c $URL -P metadata done echo "Files downloaded" -ls -la metadata/${NAME}*-*${VERSION}*xml - +ls -la metadata/$NAME*-*$VERSION*xml diff --git a/metadata/testplugin_pi-1.0.328.0-android-arm64-16-android-arm64.xml b/metadata/testplugin_pi-1.0.328.0-android-arm64-16-android-arm64.xml deleted file mode 100644 index ae63321160..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-android-arm64-16-android-arm64.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -android-arm64 -android - -16 -arm64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-android-arm64-16-android-arm64-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-android-arm64-16-android-arm64.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-android-armhf-16-android-armhf.xml b/metadata/testplugin_pi-1.0.328.0-android-armhf-16-android-armhf.xml deleted file mode 100644 index 8efc2bebf9..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-android-armhf-16-android-armhf.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -android-armhf -android - -16 -armhf - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-android-armhf-16-android-armhf-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-android-armhf-16-android-armhf.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-darwin-wx32-arm64-x86_64-14.1-macos.xml b/metadata/testplugin_pi-1.0.328.0-darwin-wx32-arm64-x86_64-14.1-macos.xml deleted file mode 100644 index 660730ab1a..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-darwin-wx32-arm64-x86_64-14.1-macos.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -darwin-wx32 -darwin - -14.1 -arm64;x86_64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-darwin-wx32-arm64-x86_64-14.1-macos-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-darwin-wx32-arm64-x86_64-14.1-macos.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-debian-arm64-11-bullseye-arm64.xml b/metadata/testplugin_pi-1.0.328.0-debian-arm64-11-bullseye-arm64.xml deleted file mode 100644 index 011de87fac..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-debian-arm64-11-bullseye-arm64.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -debian-arm64 -debian - -11 -arm64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-debian-arm64-11-bullseye-arm64-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-debian-arm64-11-bullseye-arm64.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-debian-arm64-12-bookworm-arm64.xml b/metadata/testplugin_pi-1.0.328.0-debian-arm64-12-bookworm-arm64.xml deleted file mode 100644 index af64b7a767..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-debian-arm64-12-bookworm-arm64.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -debian-arm64 -debian - -12 -arm64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-debian-arm64-12-bookworm-arm64-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-debian-arm64-12-bookworm-arm64.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-debian-armhf-11-bullseye-armhf.xml b/metadata/testplugin_pi-1.0.328.0-debian-armhf-11-bullseye-armhf.xml deleted file mode 100644 index 9af5cf92fc..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-debian-armhf-11-bullseye-armhf.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -debian-armhf -debian - -11 -armhf - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-debian-armhf-11-bullseye-armhf-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-debian-armhf-11-bullseye-armhf.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-debian-armhf-12-bookworm-armhf.xml b/metadata/testplugin_pi-1.0.328.0-debian-armhf-12-bookworm-armhf.xml deleted file mode 100644 index ddef6d419f..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-debian-armhf-12-bookworm-armhf.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -debian-armhf -debian - -12 -armhf - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-debian-armhf-12-bookworm-armhf-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-debian-armhf-12-bookworm-armhf.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-debian-x86_64-11-bullseye.xml b/metadata/testplugin_pi-1.0.328.0-debian-x86_64-11-bullseye.xml deleted file mode 100644 index 86ec82d286..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-debian-x86_64-11-bullseye.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -debian-x86_64 -debian -gtk3 -11 -x86_64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-debian-x86_64-11-bullseye-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-debian-x86_64-11-bullseye.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-debian-x86_64-12-bookworm.xml b/metadata/testplugin_pi-1.0.328.0-debian-x86_64-12-bookworm.xml deleted file mode 100644 index 670b1cc98e..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-debian-x86_64-12-bookworm.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -debian-x86_64 -debian - -12 -x86_64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-debian-x86_64-12-bookworm-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-debian-x86_64-12-bookworm.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-flatpak-aarch64-22.08-flatpak.xml b/metadata/testplugin_pi-1.0.328.0-flatpak-aarch64-22.08-flatpak.xml deleted file mode 100644 index 01c69b6803..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-flatpak-aarch64-22.08-flatpak.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -flatpak-aarch64 -flatpak - -22.08 -aarch64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-flatpak-aarch64-22.08-flatpak-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-aarch64_flatpak-22.08.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-flatpak-aarch64-24.08-flatpak.xml b/metadata/testplugin_pi-1.0.328.0-flatpak-aarch64-24.08-flatpak.xml deleted file mode 100644 index 2ec5112687..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-flatpak-aarch64-24.08-flatpak.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -flatpak-aarch64 -flatpak - -24.08 -aarch64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-flatpak-aarch64-24.08-flatpak-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-aarch64_flatpak-24.08.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-flatpak-x86_64-22.08-flatpak.xml b/metadata/testplugin_pi-1.0.328.0-flatpak-x86_64-22.08-flatpak.xml deleted file mode 100644 index 616b4e0a39..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-flatpak-x86_64-22.08-flatpak.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -flatpak-x86_64 -flatpak - -22.08 -x86_64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-flatpak-x86_64-22.08-flatpak-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-x86_64_flatpak-22.08.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-flatpak-x86_64-24.08-flatpak.xml b/metadata/testplugin_pi-1.0.328.0-flatpak-x86_64-24.08-flatpak.xml deleted file mode 100644 index e4c57bb43f..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-flatpak-x86_64-24.08-flatpak.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -flatpak-x86_64 -flatpak - -24.08 -x86_64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-flatpak-x86_64-24.08-flatpak-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-x86_64_flatpak-24.08.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-msvc-x86-10.0.20348-MSVC.xml b/metadata/testplugin_pi-1.0.328.0-msvc-x86-10.0.20348-MSVC.xml deleted file mode 100644 index 6d5595fe30..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-msvc-x86-10.0.20348-MSVC.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -msvc -msvc - -10.0.20348 -x86 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-msvc-x86-10.0.20348-MSVC-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-msvc-x86-10.0.20348-MSVC.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-msvc-x86-wx32-10.0.20348-MSVC.xml b/metadata/testplugin_pi-1.0.328.0-msvc-x86-wx32-10.0.20348-MSVC.xml deleted file mode 100644 index 79190ddff0..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-msvc-x86-wx32-10.0.20348-MSVC.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -msvc-wx32 -msvc - -10.0.20348 -x86 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-msvc-x86-wx32-10.0.20348-MSVC-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-msvc-x86-wx32-10.0.20348-MSVC.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi - diff --git a/metadata/testplugin_pi-1.0.328.0-ubuntu-x86_64-22.04-jammy.xml b/metadata/testplugin_pi-1.0.328.0-ubuntu-x86_64-22.04-jammy.xml deleted file mode 100644 index 68ee5a6d8e..0000000000 --- a/metadata/testplugin_pi-1.0.328.0-ubuntu-x86_64-22.04-jammy.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - Testplugin - 1.0.328.0 - 0 - Plugin to test examples of the ODAPI and JSON interface for ODRAW - - 1.18 - yes - Jon Gough - https://github.com/jongough/testplugin_pi - - -testplugin Plugin is used to test out the ODraw API and demonstrate how to use it successfully from another plugin - - -ubuntu-wx32-x86_64 -ubuntu -gtk3 -22.04 -x86_64 - -https://dl.cloudsmith.io/public/opencpn/testplugin-prod/raw/names/testplugin_pi-1.0.328.0-ubuntu-x86_64-wx32-22.04-jammy-tarball/versions/V1.0.328.0/testplugin_pi-1.0.328.0-ubuntu-x86_64-22.04-jammy.tar.gz - - https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:plugins:safety:odraw1.6_pi -