changeset 665:17fc6a3bffa4

Allow build to run with build/sources but not source tarballs. (Makes build-static-toolchains.sh slightly easier.)
author Rob Landley <rob@landley.net>
date Sat, 28 Mar 2009 16:01:54 -0500
parents 0743f9fe73cd
children ec72d651231e
files sources/functions.sh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sources/functions.sh	Sat Mar 28 16:00:31 2009 -0500
+++ b/sources/functions.sh	Sat Mar 28 16:01:54 2009 -0500
@@ -91,6 +91,11 @@
     dienow
   fi
 
+  # If the source tarball doesn't exist, but the extracted directory is there,
+  # assume everything's ok.
+
+  [ ! -e "$1" ] && [ -e "$SHA1FILE" ] && return 0
+
   # If it's already extracted and up to date (including patches), do nothing.
   SHALIST=$(cat "$SHA1FILE" 2> /dev/null)
   if [ ! -z "$SHALIST" ]