chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove sarge; add amd64; use rsync --delete
[bin.git]
/
baz-update-config
diff --git
a/baz-update-config
b/baz-update-config
index 922b75a1b434e5b2b4542433d693a303045b6d80..6a45d910f1ba70a402af562db55976456898b7eb 100755
(executable)
--- a/
baz-update-config
+++ b/
baz-update-config
@@
-12,14
+12,16
@@
NEWLINE='
IFS_SAVE="$IFS"
IFS="$NEWLINE"
IFS_SAVE="$IFS"
IFS="$NEWLINE"
-for line in $(baz cat-config "$1"); do
+for line in $(baz cat-config "$1"
2>/dev/null || cat "$1"
); do
IFS="$IFS_SAVE"
set -- $line
DIR="$1"
VERSION="$2"
IFS="$IFS_SAVE"
set -- $line
DIR="$1"
VERSION="$2"
+ echo "Updating $DIR ($VERSION) ..."
+
case $VERSION in
case $VERSION in
-
ht
tp://*)
+
bzr+ssh://*|http://*|sf
tp://*)
if [ -d "$DIR" ]; then
if [ ! -d "$DIR/.bzr" ]; then
echo "$DIR is not a bzr checkout; cannot update" >&2
if [ -d "$DIR" ]; then
if [ ! -d "$DIR/.bzr" ]; then
echo "$DIR is not a bzr checkout; cannot update" >&2