Kaydet (Commit) ac396953 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS nativefixer6 (1.5.2); FILE MERGED

2005/04/14 14:58:47 is 1.5.2.3: #i46741# preparing linux patch
2005/04/12 11:32:56 is 1.5.2.2: #i46741# improve install mechanism
2005/04/08 17:57:20 is 1.5.2.1: #i46741# split language pack into smaller packages
üst ab047683
......@@ -50,11 +50,21 @@ echo "Searching for the PRODUCTNAMEPLACEHOLDER installation ..."
case $platform in
SunOS)
PACKAGENAME=`pkginfo -x | grep PRODUCTNAMEPLACEHOLDER-core01 | sed "s/ .*//"`
PRODUCTINSTALLLOCATION="`pkginfo -r $PACKAGENAME`"
if [ "x$PACKAGENAME" != "x" ]
then
PRODUCTINSTALLLOCATION="`pkginfo -r $PACKAGENAME`"
else
PRODUCTINSTALLLOCATION=""
fi
;;
Linux)
RPMNAME=`rpm -qa | grep PRODUCTNAMEPLACEHOLDER-core01`
PRODUCTINSTALLLOCATION="`rpm -ql $RPMNAME | head -n 1`"
if [ "x$RPMNAME" != "x" ]
then
PRODUCTINSTALLLOCATION="`rpm -ql $RPMNAME | head -n 1`"
else
PRODUCTINSTALLLOCATION=""
fi
;;
*)
echo "Unsupported platform"
......@@ -117,12 +127,11 @@ SunOS)
$tail_prog +$linenum $0 | gunzip | (cd $outdir; tar xvf -)
adminfile=$outdir/admin.$$
echo "basedir=$PRODUCTINSTALLLOCATION" > $adminfile
/usr/sbin/pkgadd -d $outdir -a $adminfile PACKAGENAMEPLACEHOLDER
INSTALLLINES
;;
Linux)
$tail_prog +$linenum $0 > $outdir/PACKAGENAMEPLACEHOLDER
rpm --prefix $PRODUCTINSTALLLOCATION -i $outdir/PACKAGENAMEPLACEHOLDER
$tail_prog +$linenum $0 | gunzip | (cd $outdir; tar xvf -)
INSTALLLINES
;;
*)
echo "Unsupported platform"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment