From 91362ea86163fae9e482ff556e2c66e8443343a2 Mon Sep 17 00:00:00 2001 From: Miroslav Ć ulc Date: Fri, 18 Mar 2011 14:25:38 +0100 Subject: added netbeans script for checking changes in binary dependencies --- scripts/netbeans/check_binary_lists.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 scripts/netbeans/check_binary_lists.sh (limited to 'scripts') diff --git a/scripts/netbeans/check_binary_lists.sh b/scripts/netbeans/check_binary_lists.sh new file mode 100755 index 000000000..2706e2a15 --- /dev/null +++ b/scripts/netbeans/check_binary_lists.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +OLD_DIR="${1}" +NEW_DIR="${2}" + +if [[ -z "${OLD_DIR}" ]] || [[ -z "${NEW_DIR}" ]]; then + echo "Usage: " + exit 1 +fi + +if [ ! -d "${OLD_DIR}" ] ; then + echo "ERROR: old_dir does not exist or is not directory!" + exit 1 +fi + +if [ ! -d "${NEW_DIR}" ] ; then + echo "ERROR: new_dir does not exist or is not directory!" + exit 1 +fi + +pushd "${NEW_DIR}" + +for file in `ls */external/binaries-list`; do + RESULT=`diff "${OLD_DIR}"/$file $file` + + if [ -n "${RESULT}" ] ; then + echo "${file}" + echo ${RESULT} + fi +done + +popd + +echo "DONE." -- cgit v1.2.3-65-gdbad