diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-20 10:40:24 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-20 10:40:24 +0000 |
commit | ac396953665010abe3bc09ce0524b743358f9536 (patch) | |
tree | cf71ee11827c520086ef2d1eaf962d5e94452d90 /setup_native | |
parent | ab0476837108f701fe338c95b91a5869bd28c8f3 (diff) |
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
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/scripts/langpackscript.sh | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/setup_native/scripts/langpackscript.sh b/setup_native/scripts/langpackscript.sh index f7c161dfb0e0..dffe21ae0582 100644 --- a/setup_native/scripts/langpackscript.sh +++ b/setup_native/scripts/langpackscript.sh @@ -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" |