blob: 26b1b27a41a860cf3f56f0f561183f943831eb61 (
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
28
29
30
31
32
33
|
#!/bin/sh
for t in *
do
if [ ! -d $t/data ]; then continue; fi
for i in passwd group shadow gshadow
do
if [ -f $t/data/$i ]
then
if cmp -s $t/config/etc/$i $t/data/$i
then
echo "# $t/data/$i identical to config"
svn rm "$t/data/$i"
fi
fi
done
done
for t in *
do
cd $t
if [ ! -d data ]; then cd ..; continue; fi
for i in data/*
do
if [ ! -f $i ]; then continue; fi
if ! grep -q $i *.test
then
echo "# $t/$i not used"
svn rm "$i"
fi
done
cd ..
done
|