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

# Invalidate build stamps
# FIXME: eventually stamp invalidation
# should be done inside a buildbot step,
# since there all the information is already
# available.

base=${TALER_DEPLOYMENT_BASE:-$HOME}

for component in exchange merchant bank;
  do
  cd $base/$component
  git fetch
  if git status -sb | grep behind; then
    rm -f $base/deployment/taler-build/$component-stamp
  fi
  done

cd $base/gnunet
svnHead=$(svn info -r HEAD | awk '/^Revision/ {print $2}')
svnBase=$(svn info -r BASE | awk '/^Revision/ {print $2}')
if test $svnHead != $svnBase; then
  rm -f $base/deployment/taler-build/gnunet-stamp
fi