diff --git a/scripts/update-rndaddtoentcnt.sh b/scripts/update-rndaddtoentcnt.sh deleted file mode 100755 index 8ea9daf1af..0000000000 --- a/scripts/update-rndaddtoentcnt.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -e - -ID=${1} -PACKAGE_NAME="rndaddtoentcnt" -PROJECT_URL="https://github.com/jumpnow/rndaddtoentcnt" -ARCHIVE_URL="${PROJECT_URL}/archive/${ID}/${PACKAGE_NAME}-${ID}.tar.gz" - -if [[ -z "${ID}" ]]; then - echo "tag name or commit sha required (see ${URL})" - exit 1 -fi - -# download archive for hash update -ARCHIVE_HASH=$(wget --passive-ftp -nd -t 3 -O - "${ARCHIVE_URL}" | sha256sum | awk '{ print $1 }') -if [[ -n "${ARCHIVE_HASH}" ]]; then - # update package info - sed -i "s/${PACKAGE_NAME^^}_VERSION = .*/${PACKAGE_NAME^^}_VERSION = $1/g" "buildroot-external/package/${PACKAGE_NAME}/${PACKAGE_NAME}.mk" - # update package hash - sed -i "$ d" "buildroot-external/package/${PACKAGE_NAME}/${PACKAGE_NAME}.hash" - echo "sha256 ${ARCHIVE_HASH} ${PACKAGE_NAME}-${ID}.tar.gz" >>"buildroot-external/package/${PACKAGE_NAME}/${PACKAGE_NAME}.hash" -fi