summaryrefslogtreecommitdiffstats
path: root/set_mod_bits.sh
blob: 0ad86b0e73e39825364f830adba3878ea4117ed1 (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
#!/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 "*.xls"   -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 "*.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


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

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