File: update-svn-ignores.sh

package info (click to toggle)
resiprocate 1%3A1.9.7-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 36,456 kB
  • ctags: 27,123
  • sloc: cpp: 195,346; xml: 12,515; sh: 11,986; ansic: 6,807; makefile: 2,182; php: 1,150; python: 300; objc: 91; sql: 85; perl: 21; csh: 5
file content (21 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

DIRS=". resiprocate resiprocate/test resiprocate/dum resiprocate/dum/test resiprocate/dum/doc"
T=$(mktemp)

[ -z "${T}"] || [ ! -f "${T}" ] || T=/tmp/$$.uti

    
for D in ${DIRS}; do
    cp /dev/null "${T}"
    for I in .cvsignore .autotools-conflicts-list; do
        echo ${I} >> "${T}"
        [ -f "${D}/${I}" ] && cat ${D}/${I} >> "${T}"
    done
    echo "+++ ${D} ignore list:"
    awk '{print "\t"$0;}' "${T}"
    svn propset svn:ignore -F "${T}" "${D}"
done


rm "${T}"