#
# Copyright (c) 1996-2007, Adobe Systems Incorporated
# All Rights Reserved
#
{
ST_ER_AR02="ERROR: Cannot find installation directory."
ST_LANG="ENU"
ST_SMALL_N="n"
ST_ER_AR01="ERROR: Cannot determine current directory."
ST_ICE_INFO_03="The website presented the following Certificate"
ST_ER_AR04="ERROR: The environment variable TMPDIR points to an invalid path."
ST_ICE_INFO_05="Certificate successfully installed."
ST_ER_DIR="ERROR: Cannot make directory %s."
ST_YES="yes"
ST_ER_AR03="ERROR: Cannot find %s."
ST_ICE_INFO_07="Unable to find openssl, please make sure the openssl binary is in the PATH"
ST_INFO_AR04="Installed platform(s) include the following:"
ST_VERSION="version"
ST_INFO_AR01="The OS named %s is currently not installed."
ST_ICE_INFO_04="Do you want to accept and install it (y|n)? "
ST_CAPS_Y="Y"
ST_ICE_INFO_01="Fetching certificate from website...."
ST_ICE_INFO_02="Processing ...."
ST_ICE_INFO_08="Not installing the certificate."
ST_INFO_AR03="Try running on an installed platform and connecting to your display."
ST_ICE_INFO_06="There was a problem installing the certificate"
ST_SMALL_Y="y"
ST_ER_AR05="%s not installed for this configuration, %s."
}
{
ST_ER_AR02="���顼 : ���ȡ���ǥ��쥯�ȥ꤬���Ĥ���ޤ���"
ST_LANG="JPN"
ST_SMALL_N="n"
ST_ER_AR01="���顼 : ���ߤΥǥ��쥯�ȥ��Ĵ�٤��ޤ���"
ST_ICE_INFO_03="Web �����Ȥˤϼ��ξ�����ɽ������ޤ�"
ST_ER_AR04="���顼 : �Ķ��ѿ� TMPDIR ��̵��ʥѥ�����ꤷ�Ƥ��ޤ���"
ST_ICE_INFO_05="����������˥��ȡ��뤵��ޤ�����"
ST_ER_DIR="���顼 : �ǥ��쥯�ȥ� %s ������Ǥ��ޤ���"
ST_YES="yes"
ST_ER_AR03="���顼 : %s �����Ĥ���ޤ���"
ST_ICE_INFO_07="openssl �����Ĥ���ޤ���Ǥ�����openssl �Х��ʥ꤬ PATH �ˤ��뤳�Ȥ��ǧ���Ƥ���������"
ST_INFO_AR04="���ȡ���ѤߤΥץ�åȥե�����ˤϼ��Τ�Τ�����ޤ� : "
ST_VERSION="�������"
ST_INFO_AR01="���ߡ�%s �Ȥ���̾���� OS �����ȡ��뤵��Ƥ��ޤ���"
ST_ICE_INFO_04="Ʊ�դ��ƥ��ȡ��뤷�ޤ��� (y|n)�� "
ST_CAPS_Y="Y"
ST_ICE_INFO_01="Web �����Ȥ���������������Ƥ��ޤ�...."
ST_ICE_INFO_02="������...."
ST_ICE_INFO_08="������ȡ��뤷�Ƥ��ޤ���"
ST_INFO_AR03="���ȡ���ѤߤΥץ�åȥե������Ǽ¹Ԥ������Ȥ��Υǥ����ץ쥤����³���Ƥ���������"
ST_ICE_INFO_06="������Υ��ȡ���������꤬ȯ�����ޤ���"
ST_SMALL_Y="y"
ST_ER_AR05="%s �Ϥ������� %s �Ǥϥ��ȡ��뤵��ޤ���"
}
{
ST_ER_AR02="エラー : インストールディレクトリが見つかりません。"
ST_LANG="JPN"
ST_SMALL_N="n"
ST_ER_AR01="エラー : 現在のディレクトリを調べられません。"
ST_ICE_INFO_03="Web サイトには次の証明書が表示されます"
ST_ER_AR04="エラー : 環境変数 TMPDIR が無効なパスを指定しています。"
ST_ICE_INFO_05="証明書が正常にインストールされました。"
ST_ER_DIR="エラー : ディレクトリ %s を作成できません。"
ST_YES="yes"
ST_ER_AR03="エラー : %s が見つかりません。"
ST_ICE_INFO_07="openssl が見つかりませんでした。openssl バイナリが PATH にあることを確認してください。"
ST_INFO_AR04="インストール済みのプラットフォームには次のものがあります : "
ST_VERSION="バージョン"
ST_INFO_AR01="現在、%s という名前の OS がインストールされていません。"
ST_CAPS_Y="Y"
ST_ICE_INFO_04="同意してインストールしますか (y|n)? "
ST_ICE_INFO_01="Web サイトから証明書を取得しています...."
ST_ICE_INFO_02="処理中...."
ST_ICE_INFO_08="証明書をインストールしていません。"
ST_INFO_AR03="インストール済みのプラットフォーム上で実行し、お使いのディスプレイに接続してください。"
ST_ICE_INFO_06="証明書のインストール中に問題が発生しました"
ST_SMALL_Y="y"
ST_ER_AR05="%s はこの設定 %s ではインストールされません。"
}
# Determine default language based on current system language.
# Defaults to English (ENU).
# check if it's a UTF-8 locale
MYUTF8=""
if [ $? -eq 0 ]; then
MYUTF8="_utf"
fi
esac
if [ $MYLANG != "ENU" ]; then
fi
ver="8.1.7"
if [ "$1" = "-version" ]; then
echo "$ver"
exit
fi
{
else
exec ${1+"$@"}
fi
}
{
if [ "${mktemp_count+set}" != "set" ]; then
mktemp_count="0"
fi
mktemp_file="/tmp/acrobat.$$.${mktemp_count}"
while /usr/bin/test -e "$mktemp_file"
do
mktemp_file="/tmp/acrobat.$$.${mktemp_count}"
done
}
MkTemp()
{
:
else
fi
}
readlink()
{
lfile="$1"
fi
cd "$CWD"
done
fi
cd "$CWD"
cd "$OLDPWD"
return 0
fi
cd "$OLDPWD"
return 1
}
if [ -h "$0" ]; then
ScriptVariable=`readlink $0`
else
cd "$ScriptDirectory"
cd "$cwd"
fi
#
# Prepend a colon separated environment variable
# $1 string to be prepended
# $2 environment variable
#
prepend()
{
if [ -z "$2" -o "$2" = "$1" ] ; then
echo "$1"
else
echo "$2"
else
echo "${1}:${2}"
fi
fi
}
#
# Tests the version file in an installation directory.
#
{
return 0
else
return 1
fi
}
#
# Check a given file in given path
#
Which()
{
IFS=":"
status=1
if [ -x "$i/$1" ]; then
echo "$i/$1"
status=0
break
fi
done
return $status
}
yesno()
{
msg="$1"
def="$2"
while : ; do
read answer
return 0
;;
*)
return 1
;;
esac
else
return $def
fi
done
}
{
#$1 is install_dir
#$2 is URL
#$3 is port
RETVAL=0
INSTALL_DIR="$1"
then
:
else
printf "%s\n" "$ST_ICE_INFO_07"
exit 1
fi
printf "%s\n" "$ST_ICE_INFO_01"
if [ $? -ne 0 ]
then
exit 1
else
printf "%s\n" "$ST_ICE_INFO_02"
fi
printf "%s\n\n" "$ST_ICE_INFO_03"
then
then
if [ $? -ne 0 ]
then
exit 1
fi
fi
if [ $? -eq 0 ]
then
printf "%s\n" "$ST_ICE_INFO_05"
else
printf "%s\n" "$ST_ICE_INFO_06"
RETVAL=1
fi
else
printf "%s\n" "$ST_ICE_INFO_08"
RETVAL=2
fi
return $RETVAL
}
#
# Get the current working directory.
# Try to avoid automounter directories by checking
# if $HOME or $PWD is the same directory as pwd,
# and removing the automount directory component.
#
printf "%s\n" "$ST_ER_AR01"
exit 1
fi
fi
export PWD
#
# Setup ACRO_ARG0 to this script
#
arg0="$0"
if [ "$arg0" ] ; then
/*) ;;
esac
export ACRO_ARG0
fi
#
# Try to find the installation directory
#
export ACRO_INSTALL_DIR
else
while [ "$script" ] ; do
ACRO_INSTALL_DIR="$install_dir/Reader"
export ACRO_INSTALL_DIR
break
fi
ACRO_INSTALL_DIR="$install_dir/Reader"
export ACRO_INSTALL_DIR
break
fi
if [ -h "$script" ] ; then
fi
else
break
fi
done
:
export ACRO_INSTALL_DIR
else
printf "%s\n" "$ST_ER_AR02"
exit 1
fi
fi
#
# setup the configuration from uname
#
os_release=`uname -r`
case "$os_release" in
4.1.3*|4.1.4*|4.1C)
export ACRO_CONFIG
;;
5.*)
machine_type=`uname -p`
case "$machine_type" in
export ACRO_CONFIG
;;
export ACRO_CONFIG
;;
ppc)
export ACRO_CONFIG
;;
esac
;;
esac
;;
export ACRO_CONFIG
;;
AIX)
export ACRO_CONFIG
;;
export ACRO_CONFIG
esac
if [ -z "$ACRO_CONFIG" ] ; then
printf "%s\n%s\n" "$ST_INFO_AR03" "$ST_INFO_AR04"
if [ -d "$ACRO_INSTALL_DIR"/sparcsolaris ] ; then
fi
if [ -d "$ACRO_INSTALL_DIR"/intellinux ] ; then
fi
exit 1
fi
# Enable this if you want Adobe Reader to cache Font-config fonts
# ACRO_ENABLE_FONT_CONFIG=1
# export ACRO_ENABLE_FONT_CONFIG
# Enable this if you want to set the MOZILLA_COMP_PATH globally (for all the users)
#if [ -f "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config" ]; then
# export MOZILLA_COMP_PATH
#fi
greConfigFile="${HOME}/.adobe/Acrobat/$majorRelease/Preferences/acrogre.conf"
if [ -f "$greConfigFile" ]; then
if [ -n "$mozillaPath" ]; then
export MOZILLA_COMP_PATH
fi
else
for i in /etc/gre.d/gre.conf /etc/gre.d/firefox.conf /etc/gre.d/mozilla.conf /etc/gre.d/*.conf /etc/gre.conf
do
if [ -f "$i" ]; then
if [ -n "$mozillaPath" ]; then
export MOZILLA_COMP_PATH
break
fi
fi
done
fi
ADOBE_USER_PREFERENCES="$HOME/.adobe/Acrobat/$majorRelease/Preferences"
export ADOBE_USER_PREFERENCES
export MOZILLA_FIVE_HOME
#
# Setup configuration specific environment variables
#
export ACRO_LD_LIBRARY_PATH
case "$ACRO_CONFIG" in
LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}" "${LD_LIBRARY_PATH}"`"
export LD_LIBRARY_PATH
;;
LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}" "${LD_LIBRARY_PATH}"`"
export LD_LIBRARY_PATH
;;
LIBPATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:/opt/freeware/lib" "$LIBPATH"`"
export LIBPATH
;;
SHLIB_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:/opt/graphics/OpenGL/lib" "$SHLIB_PATH"`"
export SHLIB_PATH
export LD_PRELOAD
;;
esac
if [ "$directory" = "Reader" ]; then
cmd="acroread"
prod="Adobe Reader"
else
if [ "$directory" = "Acrobat" ]; then
cmd="acroexch"
prod="Adobe Acrobat"
fi
fi
#
# Set the command. Process any debug flags and exec.
#
export SYNCAPP_EXEC_CMD
export ACRO_EXEC_CMD
export ACRO_RES_DIR
export ACRO_LANG
ADOBE_HELP_PATH="$ACRO_INSTALL_DIR/../../.."
export ADOBE_HELP_PATH
#Checking if TMPDIR points to a valid directory
then
printf "%s\n" "$ST_ER_AR04"
exit 1
fi
# Adobe Reader/Acrobat uses gconftool-2 to check whether accessibility support is enabled. Please refer to the Readme file to work around this.
then
ACRO_AT_ACTIVE=`gconftool-2 -g /desktop/gnome/interface/accessibility 2>/dev/null`
else
# gconftool-2 is not there on system, turn off AT support
ACRO_AT_ACTIVE="false"
fi
export ACRO_AT_ACTIVE
# Required for Multimedia plugin
# look for installed realplayer
if [ "$ACRO_CONFIG" = "intellinux" ]; then
if [ -d "$REALPLAYER_HOME" ] ; then
true
REALPLAYER_HOME=`readlink ${ARG0} 2> /dev/null`
export REALPLAYER_HOME
REALPLAYER_HOME=`cd $REALPLAYER_HOME; pwd;`
export REALPLAYER_HOME
fi
fi
fi
if [ "$ACRO_AT_ACTIVE" = "true" ]; then
export GTK_MODULES
fi
if [ "$1" = "-installCertificate" ]
then
exit $?
fi
export PATH
mkdir -p "${HOME}/.adobe/Acrobat/$majorRelease/Preferences/mozilla"
cp -f "$ACRO_INSTALL_DIR/$ACRO_CONFIG/mozilla/prefs.js" "${HOME}/.adobe/Acrobat/$majorRelease/Preferences/mozilla/prefs.js"
if [ "$1" = "-DEBUG" ] ; then
export ACRODEBUG ACRO_CRASHLOG
then
fi
if [ $# = 1 ] ; then
export ACRO_EXEC_CMD
exec "$SHELL"
else
shift
fi
fi
if [ -f "$ACRO_EXEC_CMD" ] ; then
else
printf "$ST_ER_AR03\n" "$ACRO_EXEC_CMD"
printf "$ST_ER_AR05\n" "$prod" "\"$ACRO_CONFIG\""
exit 1
fi