mirror of
https://github.com/Tooloop/Tooloop-Packages.git
synced 2026-04-27 20:41:37 +02:00
change folder structure and control files to newest concept
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
# If you want to support more platforms, visit jogamp.org to get the
|
||||
# natives libraries for the platform in question (i.e. Solaris).
|
||||
|
||||
name = OpenGL
|
||||
|
||||
application.macosx=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-macosx-universal.jar,gluegen-rt-natives-macosx-universal.jar
|
||||
application.windows32=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-windows-i586.jar,gluegen-rt-natives-windows-i586.jar
|
||||
application.windows64=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-windows-amd64.jar,gluegen-rt-natives-windows-amd64.jar
|
||||
application.linux32=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-linux-i586.jar,gluegen-rt-natives-linux-i586.jar
|
||||
application.linux64=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-linux-amd64.jar,gluegen-rt-natives-linux-amd64.jar
|
||||
application.linux-armv6hf=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-linux-armv6hf.jar,gluegen-rt-natives-linux-armv6hf.jar
|
||||
application.linux-arm64=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-linux-aarch64.jar,gluegen-rt-natives-linux-aarch64.jar
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,252 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script adds a menu item, icons and mime type for Processing for
|
||||
# the current user. If possible, it will use the xdg-utils - or fall back
|
||||
# to just creating and copying a desktop file to the user's directory.
|
||||
# If called with the "-u" option, it will uninstall.
|
||||
|
||||
# Resource name to use (including vendor prefix)
|
||||
RESOURCE_NAME=processing-pde
|
||||
|
||||
# Get absolute path from which this script file was executed
|
||||
# (Could be changed to "pwd -P" to resolve symlinks to their target)
|
||||
SCRIPT_PATH=$( cd $(dirname $0) ; pwd )
|
||||
cd "${SCRIPT_PATH}"
|
||||
|
||||
# Default mode is to install.
|
||||
UNINSTALL=false
|
||||
|
||||
# If possible, get location of the desktop folder. Default to ~/Desktop
|
||||
XDG_DESKTOP_DIR="${HOME}/Desktop"
|
||||
if [ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/user-dirs.dirs" ]; then
|
||||
. "${XDG_CONFIG_HOME:-${HOME}/.config}/user-dirs.dirs"
|
||||
fi
|
||||
|
||||
# Install using xdg-utils
|
||||
xdg_install_f() {
|
||||
|
||||
# Create a temp dir accessible by all users
|
||||
TMP_DIR=`mktemp --directory`
|
||||
|
||||
# Create *.desktop file using the existing template file
|
||||
sed -e "s,<BINARY_LOCATION>,${SCRIPT_PATH}/processing,g" \
|
||||
-e "s,<ICON_NAME>,${RESOURCE_NAME},g" "${SCRIPT_PATH}/lib/desktop.template" > "${TMP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
|
||||
# Install the icon files using name and resolutions
|
||||
xdg-icon-resource install --context mimetypes --size 16 "${SCRIPT_PATH}/lib/icons/pde-16.png" $RESOURCE_NAME
|
||||
xdg-icon-resource install --context mimetypes --size 32 "${SCRIPT_PATH}/lib/icons/pde-32.png" $RESOURCE_NAME
|
||||
xdg-icon-resource install --context mimetypes --size 48 "${SCRIPT_PATH}/lib/icons/pde-48.png" $RESOURCE_NAME
|
||||
xdg-icon-resource install --context mimetypes --size 64 "${SCRIPT_PATH}/lib/icons/pde-64.png" $RESOURCE_NAME
|
||||
xdg-icon-resource install --context mimetypes --size 128 "${SCRIPT_PATH}/lib/icons/pde-128.png" $RESOURCE_NAME
|
||||
xdg-icon-resource install --context mimetypes --size 256 "${SCRIPT_PATH}/lib/icons/pde-256.png" $RESOURCE_NAME
|
||||
xdg-icon-resource install --context mimetypes --size 512 "${SCRIPT_PATH}/lib/icons/pde-512.png" $RESOURCE_NAME
|
||||
xdg-icon-resource install --context mimetypes --size 1024 "${SCRIPT_PATH}/lib/icons/pde-1024.png" $RESOURCE_NAME
|
||||
|
||||
# Install the created *.desktop file
|
||||
xdg-desktop-menu install "${TMP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
|
||||
# Create icon on the desktop
|
||||
xdg-desktop-icon install "${TMP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
|
||||
# Install Processing mime type
|
||||
xdg-mime install "${SCRIPT_PATH}/lib/${RESOURCE_NAME}.xml"
|
||||
|
||||
# Install icons for mime type
|
||||
xdg-icon-resource install --context mimetypes --size 16 "${SCRIPT_PATH}/lib/icons/pde-16.png" text-x-processing
|
||||
xdg-icon-resource install --context mimetypes --size 32 "${SCRIPT_PATH}/lib/icons/pde-32.png" text-x-processing
|
||||
xdg-icon-resource install --context mimetypes --size 48 "${SCRIPT_PATH}/lib/icons/pde-48.png" text-x-processing
|
||||
xdg-icon-resource install --context mimetypes --size 64 "${SCRIPT_PATH}/lib/icons/pde-64.png" text-x-processing
|
||||
xdg-icon-resource install --context mimetypes --size 128 "${SCRIPT_PATH}/lib/icons/pde-128.png" text-x-processing
|
||||
xdg-icon-resource install --context mimetypes --size 256 "${SCRIPT_PATH}/lib/icons/pde-256.png" text-x-processing
|
||||
xdg-icon-resource install --context mimetypes --size 512 "${SCRIPT_PATH}/lib/icons/pde-512.png" text-x-processing
|
||||
xdg-icon-resource install --context mimetypes --size 1024 "${SCRIPT_PATH}/lib/icons/pde-1024.png" text-x-processing
|
||||
|
||||
# Make the Processing Development Environment the default app for *.pde files
|
||||
xdg-mime default ${RESOURCE_NAME}.desktop text/x-processing
|
||||
|
||||
# Clean up
|
||||
rm "${TMP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
rmdir "$TMP_DIR"
|
||||
|
||||
}
|
||||
|
||||
# Install by simply copying desktop file (fallback)
|
||||
simple_install_f() {
|
||||
|
||||
# Create a temp dir accessible by all users
|
||||
TMP_DIR=`mktemp --directory`
|
||||
|
||||
# Create *.desktop file using the existing template file
|
||||
sed -e "s,<BINARY_LOCATION>,${SCRIPT_PATH}/processing,g" \
|
||||
-e "s,<ICON_NAME>,${SCRIPT_PATH}/lib/icons/pde-128.png,g" "${SCRIPT_PATH}/lib/desktop.template" > "${TMP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
|
||||
mkdir -p "${HOME}/.local/share/applications"
|
||||
cp "${TMP_DIR}/${RESOURCE_NAME}.desktop" "${HOME}/.local/share/applications/"
|
||||
|
||||
mkdir -p "${HOME}/.local/share/metainfo"
|
||||
cp "${SCRIPT_PATH}/lib/appdata.xml" "${HOME}/.local/share/metainfo/${RESOURCE_NAME}.appdata.xml"
|
||||
|
||||
# Copy desktop icon if desktop dir exists (was found)
|
||||
if [ -d "${XDG_DESKTOP_DIR}" ]; then
|
||||
cp "${TMP_DIR}/${RESOURCE_NAME}.desktop" "${XDG_DESKTOP_DIR}/"
|
||||
# Altering file permissions to avoid "Untrusted Application Launcher" error on Ubuntu
|
||||
chmod u+x "${XDG_DESKTOP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
fi
|
||||
|
||||
# Clean up temp dir
|
||||
rm "${TMP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
rmdir "${TMP_DIR}"
|
||||
|
||||
}
|
||||
|
||||
# Uninstall using xdg-utils
|
||||
xdg_uninstall_f() {
|
||||
|
||||
# Remove *.desktop file
|
||||
xdg-desktop-menu uninstall ${RESOURCE_NAME}.desktop
|
||||
|
||||
# Remove icon from desktop
|
||||
xdg-desktop-icon uninstall ${RESOURCE_NAME}.desktop
|
||||
|
||||
# Remove icons
|
||||
xdg-icon-resource uninstall --size 16 $RESOURCE_NAME
|
||||
xdg-icon-resource uninstall --size 32 $RESOURCE_NAME
|
||||
xdg-icon-resource uninstall --size 48 $RESOURCE_NAME
|
||||
xdg-icon-resource uninstall --size 64 $RESOURCE_NAME
|
||||
xdg-icon-resource uninstall --size 128 $RESOURCE_NAME
|
||||
xdg-icon-resource uninstall --size 256 $RESOURCE_NAME
|
||||
xdg-icon-resource uninstall --size 512 $RESOURCE_NAME
|
||||
xdg-icon-resource uninstall --size 1024 $RESOURCE_NAME
|
||||
|
||||
# Remove MIME type icons
|
||||
xdg-icon-resource uninstall --size 16 text-x-processing
|
||||
xdg-icon-resource uninstall --size 32 text-x-processing
|
||||
xdg-icon-resource uninstall --size 48 text-x-processing
|
||||
xdg-icon-resource uninstall --size 64 text-x-processing
|
||||
xdg-icon-resource uninstall --size 128 text-x-processing
|
||||
xdg-icon-resource uninstall --size 256 text-x-processing
|
||||
xdg-icon-resource uninstall --size 512 text-x-processing
|
||||
xdg-icon-resource uninstall --size 1024 text-x-processing
|
||||
|
||||
# Remove MIME type
|
||||
xdg-mime uninstall "${SCRIPT_PATH}/lib/${RESOURCE_NAME}.xml"
|
||||
|
||||
}
|
||||
|
||||
# Uninstall by simply removing desktop files (fallback), incl. old one
|
||||
simple_uninstall_f() {
|
||||
|
||||
# delete legacy cruft .desktop file
|
||||
if [ -f "${HOME}/.local/share/applications/processing.desktop" ]; then
|
||||
rm "${HOME}/.local/share/applications/processing.desktop"
|
||||
fi
|
||||
|
||||
# delete another legacy .desktop file
|
||||
if [ -f "${HOME}/.local/share/applications/processing-processingide.desktop" ]; then
|
||||
rm "${HOME}/.local/share/applications/processing-processingide.desktop"
|
||||
fi
|
||||
|
||||
if [ -f "${HOME}/.local/share/applications/${RESOURCE_NAME}.desktop" ]; then
|
||||
rm "${HOME}/.local/share/applications/${RESOURCE_NAME}.desktop"
|
||||
fi
|
||||
|
||||
if [ -f "${HOME}/.local/share/metainfo/${RESOURCE_NAME}.appdata.xml" ]; then
|
||||
rm "${HOME}/.local/share/metainfo/${RESOURCE_NAME}.appdata.xml"
|
||||
fi
|
||||
|
||||
if [ -f "${XDG_DESKTOP_DIR}/processing.desktop" ]; then
|
||||
rm "${XDG_DESKTOP_DIR}/processing.desktop"
|
||||
fi
|
||||
|
||||
if [ -f "${XDG_DESKTOP_DIR}/${RESOURCE_NAME}.desktop" ]; then
|
||||
rm "${XDG_DESKTOP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# Update desktop file and mime databases (if possible)
|
||||
updatedbs_f() {
|
||||
|
||||
if [ -d "${HOME}/.local/share/applications" ]; then
|
||||
if command -v update-desktop-database > /dev/null; then
|
||||
update-desktop-database "${HOME}/.local/share/applications"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "${HOME}/.local/share/mime" ]; then
|
||||
if command -v update-mime-database > /dev/null; then
|
||||
update-mime-database "${HOME}/.local/share/mime"
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# Check availability of xdg-utils
|
||||
xdg_exists_f() {
|
||||
|
||||
if ! command -v xdg-icon-resource > /dev/null; then return 1; fi
|
||||
if ! command -v xdg-desktop-menu > /dev/null; then return 1; fi
|
||||
if ! command -v xdg-desktop-icon > /dev/null; then return 1; fi
|
||||
if ! command -v xdg-mime > /dev/null; then return 1; fi
|
||||
return 0
|
||||
|
||||
}
|
||||
|
||||
# Shows a description of the available options
|
||||
display_help_f() {
|
||||
printf "\nThis script will add a Processing desktop shortcut, menu item,\n"
|
||||
printf "icons and file associations for the current user.\n"
|
||||
if ! xdg_exists_f; then
|
||||
printf "\nxdg-utils are recommended to be installed, so this script can use them.\n"
|
||||
fi
|
||||
printf "\nOptional arguments are:\n\n"
|
||||
printf "\t-u, --uninstall\t\tRemoves shortcut, menu item and icons.\n\n"
|
||||
printf "\t-h, --help\t\tShows this help again.\n\n"
|
||||
}
|
||||
|
||||
# Check for provided arguments
|
||||
while [ $# -gt 0 ] ; do
|
||||
ARG="${1}"
|
||||
case $ARG in
|
||||
-u|--uninstall)
|
||||
UNINSTALL=true
|
||||
shift
|
||||
;;
|
||||
-h|--help)
|
||||
display_help_f
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
printf "\nInvalid option -- '${ARG}'\n"
|
||||
display_help_f
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# If possible, use xdg-utils, if not, use a more basic approach
|
||||
if xdg_exists_f; then
|
||||
if [ ${UNINSTALL} = true ]; then
|
||||
printf "Removing desktop shortcut and menu item for Processing..."
|
||||
xdg_uninstall_f
|
||||
simple_uninstall_f
|
||||
else
|
||||
printf "Adding desktop shortcut, menu item and file associations for Processing..."
|
||||
xdg_uninstall_f
|
||||
simple_uninstall_f
|
||||
xdg_install_f
|
||||
fi
|
||||
else
|
||||
if [ ${UNINSTALL} = true ]; then
|
||||
printf "Removing desktop shortcut and menu item for Processing..."
|
||||
simple_uninstall_f
|
||||
else
|
||||
printf "Adding desktop shortcut and menu item for Processing..."
|
||||
simple_uninstall_f
|
||||
simple_install_f
|
||||
fi
|
||||
fi
|
||||
updatedbs_f
|
||||
printf " done!\n"
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,69 @@
|
||||
Copyright © 1993, 2018, Oracle and/or its affiliates.
|
||||
All rights reserved.
|
||||
|
||||
This software and related documentation are provided under a
|
||||
license agreement containing restrictions on use and
|
||||
disclosure and are protected by intellectual property laws.
|
||||
Except as expressly permitted in your license agreement or
|
||||
allowed by law, you may not use, copy, reproduce, translate,
|
||||
broadcast, modify, license, transmit, distribute, exhibit,
|
||||
perform, publish, or display any part, in any form, or by
|
||||
any means. Reverse engineering, disassembly, or
|
||||
decompilation of this software, unless required by law for
|
||||
interoperability, is prohibited.
|
||||
|
||||
The information contained herein is subject to change
|
||||
without notice and is not warranted to be error-free. If you
|
||||
find any errors, please report them to us in writing.
|
||||
|
||||
If this is software or related documentation that is
|
||||
delivered to the U.S. Government or anyone licensing it on
|
||||
behalf of the U.S. Government, the following notice is
|
||||
applicable:
|
||||
|
||||
U.S. GOVERNMENT END USERS: Oracle programs, including any
|
||||
operating system, integrated software, any programs
|
||||
installed on the hardware, and/or documentation, delivered
|
||||
to U.S. Government end users are "commercial computer
|
||||
software" pursuant to the applicable Federal Acquisition
|
||||
Regulation and agency-specific supplemental regulations. As
|
||||
such, use, duplication, disclosure, modification, and
|
||||
adaptation of the programs, including any operating system,
|
||||
integrated software, any programs installed on the hardware,
|
||||
and/or documentation, shall be subject to license terms and
|
||||
license restrictions applicable to the programs. No other
|
||||
rights are granted to the U.S. Government.
|
||||
|
||||
This software or hardware is developed for general use in a
|
||||
variety of information management applications. It is not
|
||||
developed or intended for use in any inherently dangerous
|
||||
applications, including applications that may create a risk
|
||||
of personal injury. If you use this software or hardware in
|
||||
dangerous applications, then you shall be responsible to
|
||||
take all appropriate fail-safe, backup, redundancy, and
|
||||
other measures to ensure its safe use. Oracle Corporation
|
||||
and its affiliates disclaim any liability for any damages
|
||||
caused by use of this software or hardware in dangerous
|
||||
applications.
|
||||
|
||||
Oracle and Java are registered trademarks of Oracle and/or
|
||||
its affiliates. Other names may be trademarks of their
|
||||
respective owners.
|
||||
|
||||
Intel and Intel Xeon are trademarks or registered trademarks
|
||||
of Intel Corporation. All SPARC trademarks are used under
|
||||
license and are trademarks or registered trademarks of SPARC
|
||||
International, Inc. AMD, Opteron, the AMD logo, and the AMD
|
||||
Opteron logo are trademarks or registered trademarks of
|
||||
Advanced Micro Devices. UNIX is a registered trademark of
|
||||
The Open Group.
|
||||
|
||||
This software or hardware and documentation may provide
|
||||
access to or information on content, products, and services
|
||||
from third parties. Oracle Corporation and its affiliates
|
||||
are not responsible for and expressly disclaim all
|
||||
warranties of any kind with respect to third-party content,
|
||||
products, and services. Oracle Corporation and its
|
||||
affiliates will not be responsible for any loss, costs, or
|
||||
damages incurred due to your access to or use of third-party
|
||||
content, products, or services.
|
||||
@@ -0,0 +1 @@
|
||||
Please refer to http://java.com/license
|
||||
@@ -0,0 +1 @@
|
||||
Please refer to http://java.com/licensereadme
|
||||
+2063
File diff suppressed because it is too large
Load Diff
+3249
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Welcome to the Java(TM) Platform
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h2>Welcome to the Java<SUP><FONT SIZE=-2>TM</FONT></SUP> Platform</h2>
|
||||
<p> Welcome to the Java<SUP><FONT SIZE=-2>TM</FONT></SUP> Standard Edition Runtime
|
||||
Environment. This provides complete runtime support for Java applications.
|
||||
<p> The runtime environment includes the Java<SUP><FONT SIZE=-2>TM</FONT></SUP>
|
||||
Plug-in product which supports the Java environment inside web browsers.
|
||||
<h3>References</h3>
|
||||
<p>
|
||||
See the <a href="http://download.oracle.com/javase/7/docs/technotes/guides/plugin/">Java Plug-in</a> product
|
||||
documentation for more information on using the Java Plug-in product.
|
||||
<p> See the <a href=
|
||||
"http://www.oracle.com/technetwork/java/javase/overview/"
|
||||
>Java Platform</a> web site for
|
||||
more information on the Java Platform.
|
||||
<hr>
|
||||
<font size="-2">
|
||||
Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
</font>
|
||||
<p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
jcontrol
|
||||
Binary file not shown.
@@ -0,0 +1,245 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
||||
#
|
||||
# Shell Script to run the Java Plug-in control panel.
|
||||
#
|
||||
# Parse the command-line options
|
||||
# -r means make associate with the container (i.e browser)
|
||||
# -u means remove the association with the container
|
||||
# -c provides the location of the container install
|
||||
# -j provides the location of the jre install
|
||||
# if neither -r or -u are specified, run the ControlPanel UI
|
||||
|
||||
USAGE='usage: ControlPanel [ (-u scheme | -r scheme) -c cpath -j jrepath ]'
|
||||
JLERROR='ControlPanel: Error: Invalid JRE location: '
|
||||
CLERROR='ControlPanel: Error: Invalid container location: '
|
||||
IPERROR='ControlPanel: Error: Insufficient permission'
|
||||
ISERROR='ControlPanel: Error: Invalid scheme: '
|
||||
XLERROR='ControlPanel: Error: Invalid link or copy: '
|
||||
|
||||
check_container_dir() {
|
||||
|
||||
if [ ! -d ${1} ]; then
|
||||
echo "${CLERROR}${2}"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -w ${1} ]; then
|
||||
echo "${IPERROR}"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
link_logic() {
|
||||
if [ ${mode} = "reg" ]; then
|
||||
ln -s ${1} ${2}
|
||||
else
|
||||
rm -f ${2}
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Get the absolute path to a symbolic link's reference.
|
||||
#
|
||||
# Parameters:
|
||||
# $* : path - the path to the file (link) to dereference (can have spaces in
|
||||
# the path).
|
||||
#
|
||||
# Output:
|
||||
# This function writes the path to the link reference to stdout.
|
||||
#
|
||||
#
|
||||
dereference() {
|
||||
path="$*"
|
||||
result=
|
||||
|
||||
#
|
||||
# Make sure the path is absolute
|
||||
#
|
||||
parent="`cd \`dirname \"${path}\"\`; pwd -P`"
|
||||
child="`basename \"${path}\"`"
|
||||
|
||||
#
|
||||
# if parent == child, then path == /, and is already absolute
|
||||
#
|
||||
if [ "${parent}" != "${child}" ]; then
|
||||
path="${parent}/${child}"
|
||||
fi
|
||||
|
||||
if [ -h "${path}" ]; then
|
||||
path=`ls -l "${path}" | sed -e "s#^.*${path} -> ##"`
|
||||
|
||||
# make sure the path is still absolute (starts with '/')
|
||||
if expr "${path}" : '[^/]' > /dev/null; then
|
||||
path="${parent}/${path}"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ${path}
|
||||
}
|
||||
|
||||
#
|
||||
# Check for all the parts required to launch the control panel relative to the
|
||||
# given path.
|
||||
#
|
||||
#
|
||||
# Parameters:
|
||||
# $* : path - the path to examine, presumably the resolved path to this
|
||||
# script (can have spaces in the path).
|
||||
#
|
||||
# Output:
|
||||
# If successful, this function outputs the absolute path to a directory
|
||||
# containing the Java binary, and ../lib/deploy.jar; otherwise it outputs
|
||||
# an empty string. (Output is to stdout.)
|
||||
#
|
||||
# Note: the assumption is that this function returns either:
|
||||
#
|
||||
# <jdk-root>/jre/bin, or
|
||||
# <jre-root>/bin
|
||||
#
|
||||
# However, as long as the directory pointed by the path returned by this
|
||||
# function contains:
|
||||
#
|
||||
# ./java
|
||||
# ../lib/deploy.jar
|
||||
#
|
||||
# it should be possible to successfully launch the JCP from the given
|
||||
# information.
|
||||
#
|
||||
check_parts() {
|
||||
result="`cd \`dirname \"$*\"\`; pwd -P`"
|
||||
|
||||
# if this is a JDK, we need the JRE subdir
|
||||
if [ -d "${result}/../jre/bin" ]; then
|
||||
result="`cd \`dirname \"$*\"\`/../jre/bin; pwd -P`"
|
||||
fi
|
||||
|
||||
if [ ! -x "${result}/java" ] || [ ! -f "${result}/../lib/deploy.jar" ]; then
|
||||
result=
|
||||
fi
|
||||
|
||||
echo ${result}
|
||||
}
|
||||
|
||||
#
|
||||
# Launch the Java Control Panel.
|
||||
#
|
||||
# Parameters:
|
||||
# $* : path - the path of this script (can have spaces in the path).
|
||||
#
|
||||
launch_jcp() {
|
||||
path="$*"
|
||||
while [ -h ${path} ]; do
|
||||
path="`dereference ${path}`"
|
||||
done
|
||||
|
||||
java_home="`check_parts ${path}`"
|
||||
if [ -n "${java_home}" ]; then
|
||||
# launch the JCP using paths relative to
|
||||
${java_home}/java -Djavaplugin.user.profile=${USER_JPI_PROFILE} \
|
||||
-Xbootclasspath/a:${java_home}/../lib/deploy.jar \
|
||||
${_JAVA_VM_OPTIONS} \
|
||||
com.sun.deploy.panel.ControlPanel
|
||||
else
|
||||
echo "${XLERROR}${java_home}"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Manage the process of registering/unregistering the Java Plug-in with a given
|
||||
# container (browser).
|
||||
#
|
||||
manage_container() {
|
||||
# Do the "right" thing based on the provided scheme.
|
||||
plugin_stem=${java_home}/plugin/${proc}
|
||||
if [ ! -d ${plugin_stem} ]; then
|
||||
echo "${JLERROR}${java_home}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case ${scheme} in
|
||||
ns4 | ns4E )
|
||||
plugin_location="${plugin_stem}/ns4"
|
||||
if [ ${mode} = "reg" ]; then
|
||||
echo "${plugin_location}"
|
||||
fi
|
||||
;;
|
||||
ns4L )
|
||||
plugin_location="${plugin_stem}/ns4"
|
||||
filename=`ls ${plugin_location}`
|
||||
container_target="${container_home}/plugins"
|
||||
check_container_dir ${container_target} ${container_home}
|
||||
link_logic ${plugin_location}/${filename} ${container_target}/${filename}
|
||||
;;
|
||||
ns610 | ns610L )
|
||||
plugin_location="${plugin_stem}/ns610"
|
||||
filename=`ls ${plugin_location}`
|
||||
container_target="${container_home}/plugins"
|
||||
check_container_dir ${container_target} ${container_home}
|
||||
link_logic ${plugin_location}/${filename} ${container_target}/${filename}
|
||||
;;
|
||||
* )
|
||||
echo ${ISERROR}${scheme}
|
||||
exit 1
|
||||
esac
|
||||
}
|
||||
|
||||
while getopts ":r:u:c:j:" opt; do
|
||||
case $opt in
|
||||
r ) mode="reg";scheme=${OPTARG}
|
||||
;;
|
||||
u ) mode="unreg";scheme=${OPTARG}
|
||||
;;
|
||||
c ) container_home=${OPTARG}
|
||||
;;
|
||||
j ) java_home=${OPTARG}
|
||||
;;
|
||||
: ) echo ${USAGE}
|
||||
exit 1
|
||||
;;
|
||||
\? ) echo ${USAGE}
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
os=`uname -s`
|
||||
if [ "${os}" = "Linux" ]; then
|
||||
case "`uname -m`" in
|
||||
i[3-9]86 | ia32 | ia64 | x86_64)
|
||||
proc=i386
|
||||
;;
|
||||
sparc*)
|
||||
proc=sparc
|
||||
;;
|
||||
arm*)
|
||||
proc=arm
|
||||
;;
|
||||
ppc*)
|
||||
proc=ppc
|
||||
;;
|
||||
*)
|
||||
proc="`uname -m`"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
proc=`uname -p`
|
||||
fi
|
||||
|
||||
if [ -z "${scheme}" ] &&
|
||||
[ -z "${java_home}" ] && [ -z "${container_home}" ]
|
||||
then
|
||||
# just run the control panel
|
||||
launch_jcp $0
|
||||
elif [ -n "${scheme}" ] &&
|
||||
[ -n "${java_home}" ] && [ -n "${container_home}" ]
|
||||
then
|
||||
# try to register/unregister the plugin
|
||||
manage_container
|
||||
else
|
||||
# one or more missing args
|
||||
echo ${USAGE}
|
||||
exit 1
|
||||
fi
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,35 @@
|
||||
# Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# List of JVMs that can be used as an option to java, javac, etc.
|
||||
# Order is important -- first in this list is the default JVM.
|
||||
# NOTE that this both this file and its format are UNSUPPORTED and
|
||||
# WILL GO AWAY in a future release.
|
||||
#
|
||||
# You may also select a JVM in an arbitrary location with the
|
||||
# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported
|
||||
# and may not be available in a future release.
|
||||
#
|
||||
-server KNOWN
|
||||
-client IGNORE
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+24
@@ -0,0 +1,24 @@
|
||||
-Xmixed mixed mode execution (default)
|
||||
-Xint interpreted mode execution only
|
||||
-Xbootclasspath:<directories and zip/jar files separated by :>
|
||||
set search path for bootstrap classes and resources
|
||||
-Xbootclasspath/a:<directories and zip/jar files separated by :>
|
||||
append to end of bootstrap class path
|
||||
-Xbootclasspath/p:<directories and zip/jar files separated by :>
|
||||
prepend in front of bootstrap class path
|
||||
-Xnoclassgc disable class garbage collection
|
||||
-Xincgc enable incremental garbage collection
|
||||
-Xloggc:<file> log GC status to a file with time stamps
|
||||
-Xbatch disable background compilation
|
||||
-Xms<size> set initial Java heap size
|
||||
-Xmx<size> set maximum Java heap size
|
||||
-Xss<size> set java thread stack size
|
||||
-Xprof output cpu profiling data
|
||||
-Xfuture enable strictest checks, anticipating future default
|
||||
-Xrs reduce use of OS signals by Java/VM (see documentation)
|
||||
-Xcheck:jni perform additional checks for JNI functions
|
||||
-Xshare:off do not attempt to use shared class data
|
||||
-Xshare:auto use shared class data if possible (default)
|
||||
-Xshare:on require using shared class data, otherwise fail.
|
||||
|
||||
The -X options are non-standard and subject to change without notice.
|
||||
+1
@@ -0,0 +1 @@
|
||||
../libjsig.so
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,60 @@
|
||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
#
|
||||
# Japanese imperial calendar
|
||||
#
|
||||
# Meiji since 1868-01-01 00:00:00 local time (Gregorian)
|
||||
# Taisho since 1912-07-30 00:00:00 local time (Gregorian)
|
||||
# Showa since 1926-12-25 00:00:00 local time (Gregorian)
|
||||
# Heisei since 1989-01-08 00:00:00 local time (Gregorian)
|
||||
calendar.japanese.type: LocalGregorianCalendar
|
||||
calendar.japanese.eras: \
|
||||
name=Meiji,abbr=M,since=-3218832000000; \
|
||||
name=Taisho,abbr=T,since=-1812153600000; \
|
||||
name=Showa,abbr=S,since=-1357603200000; \
|
||||
name=Heisei,abbr=H,since=600220800000
|
||||
|
||||
#
|
||||
# Taiwanese calendar
|
||||
# Minguo since 1911-01-01 00:00:00 local time (Gregorian)
|
||||
calendar.taiwanese.type: LocalGregorianCalendar
|
||||
calendar.taiwanese.eras: \
|
||||
name=MinGuo,since=-1830384000000
|
||||
|
||||
#
|
||||
# Thai Buddhist calendar
|
||||
# Buddhist Era since -542-01-01 00:00:00 local time (Gregorian)
|
||||
calendar.thai-buddhist.type: LocalGregorianCalendar
|
||||
calendar.thai-buddhist.eras: \
|
||||
name=BuddhistEra,abbr=B.E.,since=-79302585600000
|
||||
calendar.thai-buddhist.year-boundary: \
|
||||
day1=4-1,since=-79302585600000; \
|
||||
day1=1-1,since=-915148800000
|
||||
|
||||
#
|
||||
# Hijrah calendars
|
||||
#
|
||||
calendar.hijrah.Hijrah-umalqura: hijrah-config-umalqura.properties
|
||||
calendar.hijrah.Hijrah-umalqura.type: islamic-umalqura
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user