#!/bin/bash # Invalidate build stamps # FIXME: eventually stamp invalidation # should be done inside a buildbot step, # since there all the information is already # available. set -eu base=${TALER_DEPLOYMENT_BASE:-$HOME} for component in exchange merchant bank gnurl merchant-frontends landing; do cd $base/$component git fetch if git status -sb | grep behind; then echo "invalidating $component" rm -f $base/deployment/taler-build/$component-stamp fi done for component in gnunet libmicrohttpd; do cd $base/$component svnHead=$(svn info -r HEAD | awk '/^Revision/ {print $2}') svnBase=$(svn info -r BASE | awk '/^Revision/ {print $2}') if test $svnHead != $svnBase; then echo "invalidating $component" rm -f $base/deployment/taler-build/$component-stamp fi done