summaryrefslogtreecommitdiff
path: root/info/meta/doit
blob: 0bc74dfc1aca2d403b3d4d4de8b5f74514de9e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

HERE=`dirname "$0"`
REPO=`expr "$HERE" : '\(.*/\)info/meta'`

case "$1" in
compare | '')
	diff -ru "$HERE/remotes" "$REPO.git/remotes"
	;;
save)
	cp -a "$REPO.git/remotes" "$HERE"
	;;
restore)
	cp -a "$HERE/remotes" "$REPO.git/."
	;;
*)
	echo >&2 "usage: $0 [compare|save|restore]"
esac