#!/bin/bash # get compatible dependencies hash CUR_PWD=$(pwd) DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" ADDONS=$(cat addons.make) for a in $ADDONS; do echo "compatible $a hash:" cd ${DIR}/../../../addons/$a && git rev-parse HEAD && cd $CUR_PWD done cd $CUR_PWD