Difference between revisions of "User:Wope/Linux parallele Installation"
From Apache OpenOffice Wiki
Line 45: | Line 45: | ||
# input :2 parameters (MWS and Milestone of the desired version | # input :2 parameters (MWS and Milestone of the desired version | ||
# output:in the current directory | # output:in the current directory | ||
− | |||
− | |||
# the folder testautomation will be updated | # the folder testautomation will be updated | ||
# | # |
Revision as of 22:36, 19 March 2010
#!/bin/bash #************************************************************************* #* #* OpenOffice.org - a multi-platform office productivity suite #* #* $RCSfile: prepare.sh,v $ #* #* $Revision: 1.02 $ #* #* last change: $Author: wolfgangpechlaner $ $Date: 2010/03/19 08:50:00 $ #* #* The Contents of this file are made available subject to #* the terms of GNU Lesser General Public License Version 2.1. #* #* #* GNU Lesser General Public License Version 2.1 #* ============================================= #* Copyright 2005 by Sun Microsystems, Inc. #* 901 San Antonio Road, Palo Alto, CA 94303, USA #* #* This library is free software; you can redistribute it and/or #* modify it under the terms of the GNU Lesser General Public #* License version 2.1, as published by the Free Software Foundation. #* #* This library is distributed in the hope that it will be useful, #* but WITHOUT ANY WARRANTY; without even the implied warranty of #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #* Lesser General Public License for more details. #* #* You should have received a copy of the GNU Lesser General Public #* License along with this library; if not, write to the Free Software #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, #* MA 02111-1307 USA #* ######################################################################### # # Owner : wope@openoffice.org # # short description : prepares a 2nd Installation for testing # it would be assumed, that the tar.gz files are # in $DOWNLOADDIR, and the opt-directory are be expanded # to $OPTDIR, the prefix of the tar.gz files are # $PREFIXTAR # input :2 parameters (MWS and Milestone of the desired version # output:in the current directory # the folder testautomation will be updated # ######################################################################### DOWNLOADDIR=/home/wope/Downloads OPTDIR=/home/wope PREFIXTAR=OOo-Dev_ LANGID=de TYP=LinuxX86-64_ # TYP=LinuxIntel ######################################################################### echo "LANGID=$LANGID TYP=$TYP" if [ $# -lt 2 ] then echo "******* 2 Paramters required *******" echo "******* MWS and Milestone *******" exit 1 else echo "*** $1_$2 would be installed ***" fi if [ ! -f $DOWNLOADDIR/$PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz ] then echo "** file $PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz not found **" exit 1 fi if [ ! -f $DOWNLOADDIR/$PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz ] then echo "** file $PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz not found **" exit 1 fi if [ -d $OPTDIR/opt ] ;then echo "******* delete the old installation files *******" rm -rf $OPTDIR/opt fi echo "******* unpack the tar.gz files *******" cd $DOWNLOADDIR tar -xzf $PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz tar -xzf $PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz echo "******* install RPM files *******" cd $OPTDIR for i in $DOWNLOADDIR/$1_$2_native_packed*_en-US.*/RPMS/o*.rpm do rpm2cpio $i | cpio -id done for i in $DOWNLOADDIR/$1_$2_native_packed*_$LANGID.*/RPMS/o*.rpm do rpm2cpio $i | cpio -id done echo "******* test start OOo $1_$2 *******" $OPTDIR/opt/ooo-dev3/program/soffice