summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-16 17:19:20 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-17 10:37:00 +0100
commit78a1b6e8801d86358c0ae6e5ffce2159a57095d0 (patch)
tree461450f2045caccb4d8da6296f17ffc5877d7628
parent180e93ba8b1b72a80d05c59497f63f28728f17ce (diff)
downloadmtk-20170518-78a1b6e8801d86358c0ae6e5ffce2159a57095d0.zip
mtk-20170518-78a1b6e8801d86358c0ae6e5ffce2159a57095d0.tar.gz
mtk-20170518-78a1b6e8801d86358c0ae6e5ffce2159a57095d0.tar.bz2
scripts/update-package-md5sum: remove file, it is obsoleted by make check FIXUP=1
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rwxr-xr-xscripts/update-package-md5sum38
1 files changed, 0 insertions, 38 deletions
diff --git a/scripts/update-package-md5sum b/scripts/update-package-md5sum
deleted file mode 100755
index 1cf1716..0000000
--- a/scripts/update-package-md5sum
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env sh
-#
-# update-package-md5sum - Updates md5sum of OpenWrt packages
-#
-# update-package-md5sum will update the md5sum for all recusivly found OpenWrt packages
-# in a given directory.
-#
-# Usage: scripts/update-package-md5sum <package directory>
-#
-# Example: `scripts/update-package-md5sum feeds/packages/python`
-
-DL_FOLDER=`grep -Eo '^CONFIG_DOWNLOAD_FOLDER=".*"$' .config | \
- sed 's,^CONFIG_DOWNLOAD_FOLDER="\(.*\)"$,\1,'`
-if test -z ${DL_FOLDER}; then
- DL_FOLDER=./dl
-fi
-
-if test -z "$1"; then
- echo "Usage: $0 <package directory>"
- exit
-fi
-
-for file in `find $1 -name Makefile`; do
- if grep BuildPackage ${file} > /dev/null; then
- source=`DUMP=1 TOPDIR=\`pwd\` make -f ${file} | grep -m 1 Source | cut -f 2 -d ' '`
- if test -n "${source}"; then
- if test ! -f "${DL_FOLDER}/${source}"; then
- make package/`basename \`dirname ${file}\``/download
- fi
- sum=`md5sum ${DL_FOLDER}/${source} 2> /dev/null` || continue
- echo Updating ${file}...
- sum=`echo ${sum} | cut -d ' ' -f 1`
- sed -i "s,^PKG_MD5SUM:=.*,PKG_MD5SUM:=${sum}," ${file}
- else
- echo No source for ${file}
- fi
- fi
-done