summaryrefslogtreecommitdiff
path: root/aux-gnurl/gnurl1.sh
blob: 17865009c7c5e226e0fc15132893bbcedf4217ae (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
34
35
36
_ALLFILES=$(find .. \
                 ! -path '*.git/*' \
                 ! -path '*aux-gnurl/**' \
                 ! -path '*.der' \
                 ! -path '*.in' \
                 ! -path '*.Po' \
                 ! -path '*.tar*' \
                 ! -path '*m4/*' \
                 ! -path '*.pax*' \
                 ! -path '*.sum*' \
                 ! -path '*.asc' \
                 ! -path '*.sig' \
                 ! -path '*build/*' \
                 ! -path '*autom4te.cache/*' \
                 ! -path '*.Plo' \
                 ! -path '*.github/*' \
                 ! -path '*.o' \
                 ! -path '*.lo' \
                 ! -path '*projects/Windows/*' \
                 ! -path '*.d' \
                 ! -path '*.key' \
                 ! -path '*.pem' \
                 ! -path '*.crl' \
                 ! -path '*.csr' \
                 ! -path '*.pub' \
                 ! -path '*.prm' \
                 ! -path '*.md*' \
                 ! -path '*MacOSX*' \
                 ! -path '*docs/TODO*' \
                 ! -path '*src/macos*' \
                 ! -path '*.crt' \
                 -type f -exec grep -Il '.' {} \; | xargs -L 1 echo)
for f in ${_ALLFILES}; do
        oldmode=$(stat -f '%OLp' ${f})
	./gnurl1.awk ${f} > ${f}.tmp ; mv ${f}.tmp ${f} ; chmod $oldmode ${f}
done