File: fix-perms.sh

package info (click to toggle)
clisp 1%3A2.44.1-4.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 40,080 kB
  • ctags: 12,945
  • sloc: lisp: 77,546; ansic: 32,166; xml: 25,161; sh: 11,568; fortran: 7,094; cpp: 2,636; makefile: 1,234; perl: 164
file content (26 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# Usage: utils/fix-perms.sh
# fixes the permissions of the files in the build tree
#
# To verify:   find . -type f -perm +111 -print

find . -type f -follow -perm +111 '(' \
     -name '*.in' \
  -o -name '*.xml' \
  -o -name '*.html' \
  -o -name '*.png' \
  -o -name '*.xsl' \
  -o -name '*.m4' \
  -o -name '*.h' \
  -o -name '*.c' \
  -o -name '*.lisp' \
  -o -name '*.tst' \
  -o -name '*.bat' \
  -o -name 'link.sh' \
  -o -name '.cvsignore' \
  -o -name 'Makefile*' \
  -o -name 'README' \
  ')' \
  -exec chmod -c a-x '{}' ';'

find . -name configure -exec chmod -c +x '{}' ';'