[ooo-build-commit] .: download_external_sources.sh
Fridrich Strba
fridrich at kemper.freedesktop.org
Mon Sep 20 01:36:04 PDT 2010
download_external_sources.sh | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
New commits:
commit a701f20fbab525a772be91273d8d581d8fdc8ed8
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Mon Sep 20 10:35:36 2010 +0200
Don't bother to download things twice when building from git
When building from git, fetch_tarballs.sh and ooo.lst are present in bootstrap repository, so don't try to download them again
diff --git a/download_external_sources.sh b/download_external_sources.sh
index ec2654b..deb59de 100755
--- a/download_external_sources.sh
+++ b/download_external_sources.sh
@@ -3,13 +3,19 @@
. ./bin/setup
export TARFILE_LOCATION
-GIT_TAG=`echo $OOO_SOURCEDIRNAME | tr "a-z.-" "A-Z__"`
-tmp=`mktemp -q -d`
-
-cd $tmp
-wget http://cgit.freedesktop.org/ooo-build/bootstrap/plain/fetch_tarballs.sh?id=$GIT_TAG -O fetch_tarballs.sh && chmod 755 fetch_tarballs.sh
-wget http://cgit.freedesktop.org/ooo-build/bootstrap/plain/ooo.lst?id=$GIT_TAG -O ooo.lst
-./fetch_tarballs.sh ooo.lst && rm -f fetch_tarballs.sh ooo.lst
-cd ..
-rmdir $tmp
+export CLONEDIR
+
+if test -e $CLONEDIR/bootstrap/fetch_tarballs.sh -a -e $CLONEDIR/bootstrap/ooo.lst; then
+ $CLONEDIR/bootstrap/fetch_tarballs.sh $CLONEDIR/bootstrap/ooo.lst
+else
+ GIT_TAG=`echo $OOO_SOURCEDIRNAME | tr "a-z.-" "A-Z__"`
+ tmp=`mktemp -q -d`
+
+ cd $tmp
+ wget http://cgit.freedesktop.org/ooo-build/bootstrap/plain/fetch_tarballs.sh?id=$GIT_TAG -O fetch_tarballs.sh && chmod 755 fetch_tarballs.sh
+ wget http://cgit.freedesktop.org/ooo-build/bootstrap/plain/ooo.lst?id=$GIT_TAG -O ooo.lst
+ ./fetch_tarballs.sh ooo.lst && rm -f fetch_tarballs.sh ooo.lst
+ cd ..
+ rmdir $tmp
+fi
More information about the ooo-build-commit
mailing list