summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-05-08 14:34:13 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-05-08 14:34:13 +0000
commit703520a0201bc2ae776de31870cf5dc0793a8bdb (patch)
treec1d4641fb5d6a9ca2c99f78f81e1a6f714fa366e
parent4d55327aea5fb4c25a982516b86670bc883083c0 (diff)
INTEGRATION: CWS soc (1.5.110); FILE MERGED
2006/03/16 12:17:14 is 1.5.110.1: #133458# extract only parameter for download scripts
-rw-r--r--setup_native/scripts/downloadscript.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/setup_native/scripts/downloadscript.sh b/setup_native/scripts/downloadscript.sh
index 5b355bc7e..d74a53be3 100644
--- a/setup_native/scripts/downloadscript.sh
+++ b/setup_native/scripts/downloadscript.sh
@@ -6,6 +6,12 @@ UNPACKDIR=/var/tmp/unpack_PRODUCTNAMEPLACEHOLDER
diskSpaceRequired=DISCSPACEPLACEHOLDER
checksum=CHECKSUMPLACEHOLDER
+EXTRACTONLY="no"
+if [ "$1" = "-x" ]
+then
+ EXTRACTONLY=yes
+fi
+
# Determining current platform
platform=`uname -s`
@@ -69,10 +75,13 @@ $tail_prog +$linenum $0 | (cd $UNPACKDIR; tar xf -)
echo "All files have been successfully unpacked."
-if [ -f $UNPACKDIR/setup ]
+if [ "$EXTRACTONLY" != "yes" ]
then
- chmod 775 $UNPACKDIR/setup
- $UNPACKDIR/setup
+ if [ -f $UNPACKDIR/setup ]
+ then
+ chmod 775 $UNPACKDIR/setup
+ $UNPACKDIR/setup
+ fi
fi
exit 0