summaryrefslogtreecommitdiff
path: root/storage/ndb/home/bin/fix-cvs-root
blob: 2c4f158f8255e6f8609e486e01518c54bcfdcf9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

# change all CVS/Root to current CVSROOT

[ "$CVSROOT" ] || { echo "no CVSROOT in environment" >&2; exit 1; }

echo "changing all CVS/Root files under `pwd`"
sleep 1

find . -path '*/CVS/Root' -print |
while read file; do
	echo "$file"
	chmod +w $file || exit 1
	echo $CVSROOT >$file || exit 1
done

echo "done"