Difference between revisions of "User:Wope/Linux parallele Installation"
From Apache OpenOffice Wiki
Line 1: | Line 1: | ||
− | < | + | <source lang=bash> |
#!/bin/bash | #!/bin/bash | ||
#************************************************************************* | #************************************************************************* | ||
Line 50: | Line 50: | ||
# | # | ||
######################################################################### | ######################################################################### | ||
− | DOWNLOADDIR=/home/wope/Downloads | + | DOWNLOADDIR=/home/wope/Downloads |
− | OPTDIR=/home/wope | + | OPTDIR=/home/wope |
− | PREFIXTAR=OOo-Dev_ | + | PREFIXTAR=OOo-Dev_ |
− | LANGID=de | + | LANGID=de |
− | TYP=LinuxX86-64_ | + | TYP=LinuxX86-64_ |
# TYP=LinuxIntel | # TYP=LinuxIntel | ||
######################################################################### | ######################################################################### | ||
− | echo "LANGID=$LANGID TYP=$TYP" | + | echo "LANGID=$LANGID TYP=$TYP" |
− | if [ $# -lt 2 ] | + | if [ $# -lt 2 ] |
− | then | + | then |
echo "******* 2 Paramters required *******" | echo "******* 2 Paramters required *******" | ||
echo "******* MWS and Milestone *******" | echo "******* MWS and Milestone *******" | ||
exit 1 | exit 1 | ||
− | else | + | else |
echo "*** $1_$2 would be installed ***" | echo "*** $1_$2 would be installed ***" | ||
− | fi | + | fi |
− | if [ ! -f $DOWNLOADDIR/$PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz ] | + | if [ ! -f $DOWNLOADDIR/$PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz ] |
− | then | + | then |
echo "** file $PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz not found **" | echo "** file $PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz not found **" | ||
exit 1 | exit 1 | ||
− | fi | + | fi |
− | if [ ! -f $DOWNLOADDIR/$PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz ] | + | if [ ! -f $DOWNLOADDIR/$PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz ] |
− | then | + | then |
echo "** file $PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz not found **" | echo "** file $PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz not found **" | ||
exit 1 | exit 1 | ||
− | fi | + | fi |
− | if [ -d $OPTDIR/opt ] ;then | + | if [ -d $OPTDIR/opt ] ;then |
echo "******* delete the old installation files *******" | echo "******* delete the old installation files *******" | ||
rm -rf $OPTDIR/opt | rm -rf $OPTDIR/opt | ||
− | fi | + | fi |
− | echo "******* unpack the tar.gz files *******" | + | echo "******* unpack the tar.gz files *******" |
− | cd $DOWNLOADDIR | + | cd $DOWNLOADDIR |
− | tar -xzf $PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz | + | tar -xzf $PREFIXTAR$1_$2_$TYP\install_en-US.tar.gz |
− | tar -xzf $PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz | + | tar -xzf $PREFIXTAR$1_$2_$TYP\langpack_$LANGID.tar.gz |
− | echo "******* install RPM files *******" | + | echo "******* install RPM files *******" |
− | cd $OPTDIR | + | cd $OPTDIR |
− | for i in $DOWNLOADDIR/$1_$2_native_packed*_en-US.*/RPMS/o*.rpm | + | for i in $DOWNLOADDIR/$1_$2_native_packed*_en-US.*/RPMS/o*.rpm |
do rpm2cpio $i | cpio -id | do rpm2cpio $i | cpio -id | ||
− | done | + | done |
− | for i in $DOWNLOADDIR/$1_$2_native_packed*_$LANGID.*/RPMS/o*.rpm | + | for i in $DOWNLOADDIR/$1_$2_native_packed*_$LANGID.*/RPMS/o*.rpm |
do rpm2cpio $i | cpio -id | do rpm2cpio $i | cpio -id | ||
− | done | + | done |
− | echo "******* test start OOo $1_$2 *******" | + | echo "******* test start OOo $1_$2 *******" |
− | $OPTDIR/opt/ooo-dev3/program/soffice | + | $OPTDIR/opt/ooo-dev3/program/soffice |
− | </ | + | </source> |
Revision as of 22:13, 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 # 2 files (MWS_Milestone.release.txt # MWS_Milestone.required.txt # 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