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

for component in deployment exchange merchant bank gnurl merchant-frontends landing; do
  cd $HOME/$component
  git fetch
  if git status -sb | grep behind; then
    echo "invalidating $component"
    rm -f $HOME/deployment/taler-build/$component-stamp
  fi
done

for component in gnunet libmicrohttpd; do
  cd $HOME/$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 $HOME/deployment/taler-build/$component-stamp
  fi
done