Sie sind auf Seite 1von 4

#!/bin/sh # # Copyright (c) 2010 Symantec Corporation. All rights reserved.

# Symantec and the Symantec Logo are trademarks or registered trademarks # of Symantec Corporation or its affiliates in the U.S. and other countries. # Other names may be trademarks of their respective owners. # # The Licensed Software and Documentation are deemed to be "commercial # computer software" and "commercial computer software documentation" # as defined in FAR Sections 12.212 and DFARS Section 227.7202. # # Check PADV UNAME_PLATFORM=`(uname -s) 2>/dev/null` || UNAME_PLATFORM=unknown UNAME_ARCH=`(uname -m) 2>/dev/null` || UNAME_ARCH=unknown UNAME_DISTRO=`(uname -r) 2>/dev/null` || UNAME_DISTRO=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_PLATFORM}:${UNAME_ARCH}:${UNAME_DISTRO}:${UNAME_VERSION}" in SunOS:i86pc:5.*:*) PADV=Solx64 ;; SunOS:sun4*:5.*:*) PADV=SolSparc ;; AIX:*:*:*) PADV=AIX ;; HP-UX:*:B.11.31:*) PADV=HPUX1131 ;; HP-UX:*:B.11.23:* | HP-UX:*:*:*) PADV=HPUX1123 ;; Linux:*:*:*) if [ -f /etc/redhat-release ]; then case "${UNAME_DISTRO}" in *.el5*) DISTRO=RHEL5 ;; *) DISTRO=RHEL4 ;; esac elif [ -f /etc/SuSE-release ]; then DISTRO=SLES10 KERNEL_VERSION=`echo ${UNAME_DISTRO} | /usr/bin/cut -d . -f 3` if [ ${KERNEL_VERSION} -lt 16 ]; then DISTRO=SLES9 elif [ ${KERNEL_VERSION} -lt 26 ]; then DISTRO=SLES10 else DISTRO=SLES11 fi

elif [ -f /usr/bin/vmware ]; then DISTRO=ESX fi if [ x"$DISTRO" != x ]; then case "${UNAME_ARCH}" in x86_64) ARCH=x8664 ;; i686) ARCH=i686 ;; ia64) ARCH=ia64 ;; ppc64) ARCH=ppc64 ;; esac PADV="${DISTRO}${ARCH}" fi ;; esac case "Solx64" in SolSparc) PADV_DESC="Solaris Sparc" ;; Solx64) PADV_DESC="Solaris x64" ;; AIX) PADV_DESC="AIX" ;; RHEL5x8664) PADV_DESC="RHEL 5 x86_64" ;; RHEL5ppc64) PADV_DESC="RHEL 5 ppc64" ;; SLES10x8664) PADV_DESC="SLES 10 x86_64" ;; SLES10ppc64) PADV_DESC="SLES 10 ppc64" ;; SLES11x8664) PADV_DESC="SLES 11 x86_64" ;; SLES11ppc64) PADV_DESC="SLES 11 ppc64" ;; HPUX1131) PADV_DESC="HPUX 11.31" ;; esac

if [ x"$SKIP_PADV_CHECK" = x ]; then if [ x"$PADV" != xSolx64 ]; then echo "Error: This installer is for $PADV_DESC, please run from $PADV_DESC platform!"; if [ x"Solx64" = "xAIX" ]; then echo ""; echo "If you are running from AIX platform, please check whether the command 'uname -s' result is 'AIX', if not, please run 'uname -T AIX', and restart the installer script." fi exit 1 fi fi # Check perl directory DIRNAME=`dirname $0` [ -z "DIRNAME" ] && DIRNAME="." # Check whether run installer on DVD if [ -x "$DIRNAME/perl/bin/perl" -a -d "$DIRNAME/scripts/EDR" ]; then PDIR=$DIRNAME/perl SDIR=$DIRNAME/scripts elif [ -x "$DIRNAME/../perl/bin/perl" -a -d "$DIRNAME/../scripts/EDR" ]; then # Check whether run <prod>/(un)install<prod> on DVD PDIR=$DIRNAME/../perl SDIR=$DIRNAME/../scripts elif [ -x "/opt/VRTSperl/bin/perl" -a -f "$DIRNAME/.cpi5" ]; then # Check whether run installer from system install PDIR=/opt/VRTSperl SDIR=/opt/VRTSperl/lib/site_perl/UXRT51SP1 fi if [ -z "$PDIR" ]; then echo "Error: Cannot find perl to execute $0!" exit 1 fi PERLDEBUG="" if [ x"$CPI_DEBUG" = x1 ]; then PERLDEBUG="-d" fi PERLVERS=`$PDIR/bin/perl -v | grep This.is | awk '{print $4}' | sed 's/v//'` if [ -z "$PERLVERS" ]; then echo "Error: $PDIR/bin/perl could not run from $PADV_DESC platform!" exit 1 fi PERLFOR=`$PDIR/bin/perl -v | grep This.is | awk '{print $7}'` IOPT="-I$PDIR/lib/$PERLVERS/$PERLFOR -I$PDIR/lib/$PERLVERS I$PDIR/lib/site_perl/$PERLVERS/$PERLFOR -I$PDIR/lib/site_perl/$PERLVERS -

I$PDIR/lib/site_perl" IOPT="-I$SDIR/EDR -I$SDIR/CPIC -I$SDIR/CPIP $IOPT" eval 'exec $PDIR/bin/perl -x $PERLDEBUG -S $IOPT $0 ${1+"$@"}' if 0; #!perl use UXRT51SP1; CPIC::main( [ qw(UXRT51SP1) ], [ qw(Solx64) ], "..", "install", "SFCFS51");

Das könnte Ihnen auch gefallen