summaryrefslogtreecommitdiffstats
path: root/set_mod_bits.sh
blob: 7f0af4b7403a43a17c520bc490d45aae458aacea (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

find -iname "*.vhd"    -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.txt"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.pdf"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.png"    -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.vym"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.dot"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.odt"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.odg"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.doc"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.docx"   -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.xls"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.xlsx"   -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.ucf"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.bmm"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.cmd"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.xise"   -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.log"    -type f -executable -print0 | xargs -0 chmod -x
find -iname modelsim.ini -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.c"      -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.cpp"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.h"      -type f -executable -print0 | xargs -0 chmod -x
                     
find -iname "*.in"     -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.help"   -type f -executable -print0 | xargs -0 chmod -x

find -iname Makefile   -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.do"     -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.tar.gz" -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.zip"    -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.php"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.js"     -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.css"    -type f -executable -print0 | xargs -0 chmod -x

find -iname "*.sch"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.brd"    -type f -executable -print0 | xargs -0 chmod -x
find -iname "*.lbr"    -type f -executable -print0 | xargs -0 chmod -x

# fix group
find -not -group None -print0 | xargs -0 chown :None

# svn stuff
DIR=. 
EXCLUDE=-and -not -path './xc3sprog'
find $DIR -type f -name "Makefile" $EXCLUDE -exec svn propset svn:keywords "Date Author Id Revision HeadURL" {} \;
find $DIR -type f -name "*.vhd"    $EXCLUDE -exec svn propset svn:keywords "Date Author Id Revision HeadURL" {} \;
find $DIR -type f -name "*.h"      $EXCLUDE -exec svn propset svn:keywords "Date Author Id Revision HeadURL" {} \;
find $DIR -type f -name "*.c"      $EXCLUDE -exec svn propset svn:keywords "Date Author Id Revision HeadURL" {} \;
OpenPOWER on IntegriCloud