summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2011-03-18 14:25:38 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2011-03-18 14:25:38 +0100
commit91362ea86163fae9e482ff556e2c66e8443343a2 (patch)
treece4bc3956333f1a9214b82eedca04da0f7830c68 /scripts
parentnetbeans: bumped to latest nightly sources (diff)
downloadfordfrog-91362ea86163fae9e482ff556e2c66e8443343a2.tar.gz
fordfrog-91362ea86163fae9e482ff556e2c66e8443343a2.tar.bz2
fordfrog-91362ea86163fae9e482ff556e2c66e8443343a2.zip
added netbeans script for checking changes in binary dependencies
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netbeans/check_binary_lists.sh34
1 files changed, 34 insertions, 0 deletions
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: <old_dir> <new_dir>"
+ 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."