summaryrefslogtreecommitdiff
path: root/taler-build/invalidate.sh
blob: 13c8c8ec70f670c9ae268be581621dfa2869d80f (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
#!/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