summaryrefslogtreecommitdiffstats
path: root/bzr-update.sh
blob: e1d88e5d7b6d680c5d9f9e2fb02283963e2fb9de (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
HOST=`hostname -s`
TAG="current-staging"
[ "$HOST" == "mradm02" -o "$HOST" == "ip-admin02" ] && TAG="current-production"
echo "+ bzr pull --overwrite -rtag:$TAG"
output=`bzr pull --overwrite -rtag:$TAG 2>&1`
echo "$output"
echo "$output" | grep "Now on revision" | sed -e 's/Now on revision //' -e 's/\.$//' | xargs -i{} echo bzr pull --overwrite -r{} \# `date` >> `dirname $0`/cvs-update.log
contrib/fixperms.pl