mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-16 09:06:25 +00:00
49 lines
1.1 KiB
Bash
Executable file
49 lines
1.1 KiB
Bash
Executable file
#!/bin/sh -
|
|
# $Id$
|
|
#
|
|
# This script is designed to be run while packaging up releases, not during
|
|
# other s_all processing.
|
|
|
|
d=..
|
|
echo 'Updating Berkeley DB source tree permissions for a release package'
|
|
|
|
run()
|
|
{
|
|
if [ -f "$d/$1" ]; then
|
|
chmod "$2" "$d/$1"
|
|
else
|
|
echo "$d/$1: no such file or directory"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
# Ensure all files in the package have consistent permissions.
|
|
find $d -type d | xargs chmod 775
|
|
find $d -type f | xargs chmod 644
|
|
|
|
# Assign execute permissions where necessary.
|
|
# ODBC and JDBC are only present in release packages.
|
|
if [ -d $d/lang/sql/odbc ]; then
|
|
chmod 755 $d/lang/sql/odbc/conf*
|
|
fi
|
|
if [ -d $d/lang/sql/jdbc ]; then
|
|
chmod 755 $d/lang/sql/jdbc/conf*
|
|
fi
|
|
chmod 755 $d/dist/s_*
|
|
|
|
run dist/config.guess 755
|
|
run dist/config.sub 755
|
|
run dist/configure 755
|
|
run dist/install-sh 755
|
|
run dist/vx_buildcd 755
|
|
run lang/perl/BerkeleyDB/dbinfo 755
|
|
run lang/perl/BerkeleyDB/mkpod 755
|
|
run lang/sql/sqlite/configure 755
|
|
|
|
for i in `cd $d && find build_vxworks \
|
|
-name '*.wsp' -o -name '*.cdf' -o -name '*.wpj'`; do
|
|
chmod 775 $d/$i
|
|
done
|
|
|
|
chmod 555 $d/util/dtrace/*.d
|
|
chmod 555 $d/util/systemtap/*.stp
|