blob: a261e2274fe30f471c62e37376ac9e822bf11103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#/bin/bash
CVSOPTS="-Q";
cd ${0%/*}; # cd to directory where this script is located; cvssrc/ must be beneath it
# pass in specific target folder(s) or do all in cvssrc/ folder
dir="";
if [ $# -gt 0 ]; then
while [ $# -gt 0 ]; do
dir=$dir" $1"; shift 1;
done
else
dir="$(ls -d cvssrc/*)";
fi
for i in $dir; do
echo "[`date +%H:%M:%S`] Processing $i";
cd $i;
cvs $CVSOPTS up -Pd .;
f=$(mktemp)
cvs $CVSOPTS log > $f
echo $f | /usr/local/bin/php ../../parsecvs.php;
rm -f $f
cd ../..;
echo "[`date +%H:%M:%S`] done.";
done
|