summaryrefslogtreecommitdiff
blob: 2706e2a152b073c60d4ab0f129038805fdf215b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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."