summaryrefslogtreecommitdiff
path: root/move-protos
blob: 8539ae988240da461c9b10ae23d2f66741ecbdbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

case $# in
    1)
	me="$1"
	;;
    *)
	echo 'Usage: $0 <my-name>'
	exit 1
	;;
esac

for i in `cat duplicate-files`; do
    if [ -f $i ]; then
	mkdir -p $me/`dirname $i`
	echo git mv $i $me/$i
	git mv $i $me/$i
    fi
done

git commit -m"Move common $me files out of the way"