Debian Codegraph @

dist/s_perm

raw
1 #!/bin/sh -
2 # $Id$
3 #
4 # This script is designed to be run while packaging up releases, not during
5 # other s_all processing.
6
7 d=..
8 echo 'Updating Berkeley DB source tree permissions for a release package'
9
10 run()
11 {
12 if [ -f "$d/$1" ]; then
13 chmod "$2" "$d/$1"
14 else
15 echo "$d/$1: no such file or directory"
16 exit 1
17 fi
18 }
19
20 # Ensure all files in the package have consistent permissions.
21 find $d -type d | xargs chmod 775
22 find $d -type f | xargs chmod 644
23
24 # Assign execute permissions where necessary.
25 # ODBC and JDBC are only present in release packages.
26 if [ -d $d/lang/sql/odbc ]; then
27 chmod 755 $d/lang/sql/odbc/conf*
28 fi
29 if [ -d $d/lang/sql/jdbc ]; then
30 chmod 755 $d/lang/sql/jdbc/conf*
31 fi
32 chmod 755 $d/dist/s_*
33
34 run dist/config.guess 755
35 run dist/config.sub 755
36 run dist/configure 755
37 run dist/install-sh 755
38 run dist/vx_buildcd 755
39 run lang/perl/BerkeleyDB/dbinfo 755
40 run lang/perl/BerkeleyDB/mkpod 755
41 run lang/sql/sqlite/configure 755
42
43 for i in `cd $d && find build_vxworks \
44 -name '*.wsp' -o -name '*.cdf' -o -name '*.wpj'`; do
45 chmod 775 $d/$i
46 done
47
48 chmod 555 $d/util/dtrace/*.d
49 chmod 555 $d/util/systemtap/*.stp