3 MYUID
=`id | sed "s/(.*//g" | sed "s/.*=//"`
7 echo You need to have super-user rights to
install this language package
11 linenum
=LINENUMBERPLACEHOLDER
13 # Determining current platform
30 LICENSEFILEPLACEHOLDER
34 while [ x
$agreed = x
]; do
36 echo "Do you agree to the above license terms? [yes or no] "
42 echo "If you don't agree to the license you can't install this software";
49 SEARCHPACKAGENAME
="BASISPACKAGEPREFIXPLACEHOLDEROOOBASEVERSIONPLACEHOLDER-core01"
51 echo "Searching for the FULLPRODUCTNAMELONGPLACEHOLDER installation ..."
52 PACKAGENAME
=`pkginfo -x | grep $SEARCHPACKAGENAME | sed "s/ .*//"`
53 if [ "x$PACKAGENAME" != "x" ]
55 PRODUCTINSTALLLOCATION
="`pkginfo -r $PACKAGENAME`"
57 echo "FULLPRODUCTNAMELONGPLACEHOLDER not installed (no package $SEARCHPACKAGENAME installed)"
62 SEARCHPACKAGENAME
="BASISPACKAGEPREFIXPLACEHOLDEROOOBASEVERSIONPLACEHOLDER-core01"
63 FIXPATH
="/openoffice.org"
65 echo "Searching for the FULLPRODUCTNAMELONGPLACEHOLDER installation ..."
66 RPMNAME
=`rpm -qa | grep $SEARCHPACKAGENAME`
67 if [ "x$RPMNAME" != "x" ]
69 PRODUCTINSTALLLOCATION
="`rpm -ql $RPMNAME | head -n 1`"
71 echo "FULLPRODUCTNAMELONGPLACEHOLDER not installed (no package $SEARCHPACKAGENAME installed)"
74 PRODUCTINSTALLLOCATION
=`echo $PRODUCTINSTALLLOCATION | sed "s#${FIXPATH}##"`
77 echo "Unsupported platform"
82 # Asking for the installation directory
85 # echo "Where do you want to install the language pack ? [$PRODUCTINSTALLLOCATION] "
87 # if [ "x$reply" != "x" ]
89 # PRODUCTINSTALLLOCATION="$reply"
94 outdir
=/var
/tmp
/install_$$
97 #diskSpace=`df -k $outdir | $tail_prog -1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
98 #if [ $diskSpace -lt $diskSpaceRequired ]; then
99 # printf "You will need atleast %s kBytes of Disk Free\n" $diskSpaceRequired
100 # printf "Please free up the required Disk Space and try again\n"
104 trap 'rm -rf $outdir; exit 1' HUP INT QUIT TERM
105 echo "Unpacking and installing..."
107 #if [ -x /usr/bin/sum ] ; then
108 # echo "Checksumming..."
110 # sum=`/usr/bin/sum $outdir/$outname`
123 # if expr $sum1 != <sum1replace> || expr $sum2 != <sum2replace> ; then
124 # echo "The download file appears to be corrupted. Please refer"
125 # echo "to the Troubleshooting section of the Installation"
129 # echo "Can't find /usr/bin/sum to do checksum. Continuing anyway."
134 $tail_prog +$linenum $0 | gunzip |
(cd $outdir; tar xvf
-)
135 adminfile
=$outdir/admin.$$
136 echo "basedir=$PRODUCTINSTALLLOCATION" > $adminfile
140 $tail_prog +$linenum $0 | gunzip |
(cd $outdir; tar xvf
-)
144 echo "Unsupported platform"