#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Utility Shell Script for generating .properties files or .password files
# or .access files from a list of input .in files.
#
# Source in this GeneratePropertyPassword.sh and call the function
# generatePropertyPasswordFiles.
# Call restoreFilePermissions to restore file permissions after the test completes
#
UMASK=`umask`
PATHSEP=":"
FILESEP="/"
cat <<EOF > ${TMP_FILE}
s^@TEST-SRC@/^${TESTCLASSES}${DFILESEP}^g
EOF
;;
PATHSEP=";"
FILESEP="\\"
cat <<EOF > ${TMP_FILE}0
s^@TEST-SRC@/^${TESTCLASSES}${DFILESEP}^g
EOF
# Need to put double backslash in the .properties files
sed -e 's^\\^ZZZZ^g' | \
if [ "$OS" = "Windows_NT" ]; then
REVOKEALL="${TESTSRC}/../../windows/revokeall.exe"
if [ ! -f "$REVOKEALL" ] ; then
echo "$REVOKEALL missing"
exit 1
fi
fi
;;
*)
echo "Unrecognized system!"
exit 1
;;
esac
{
for f in $@
do
echo processing $f
f2="${TESTCLASSES}${FILESEP}${suffix}"
fi
# Grant this user full access
# Revoke everyone else
# Display ACLs
else
fi
done
}
{
for f in $@
do
f2="${TESTCLASSES}${FILESEP}${suffix}"
# Grant everyone full control
else
fi
done
}