changeset 396:63dae3cd1163

Minor cleanups.
author Rob Landley <rob@landley.net>
date Tue, 23 Sep 2008 13:02:18 -0500
parents c2b290c1df40
children 98b6f0746bf7
files include.sh
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/include.sh	Mon Sep 15 18:24:27 2008 -0500
+++ b/include.sh	Tue Sep 23 13:02:18 2008 -0500
@@ -23,7 +23,7 @@
 
 # If this is set, the toybox utilities will take precedence over busybox ones.
 
-export USE_TOYBOX=1
+# export USE_TOYBOX=1
 
 # What host compiler should we use?
 
@@ -229,7 +229,7 @@
 
   # Test first (so we don't re-download a file we've already got).
 
-  SUM=`cat "$SRCDIR/$FILENAME" | sha1sum | awk '{print $1}'`
+  SUM=`cat "$SRCDIR/$FILENAME" 2>/dev/null | sha1sum | awk '{print $1}'`
   if [ x"$SUM" == x"$SHA1" ] || [ -z "$SHA1" ] && [ -f "$SRCDIR/$FILENAME" ]
   then
     touch "$SRCDIR/$FILENAME"
@@ -266,9 +266,8 @@
 function download()
 {
   FILENAME=`echo "$URL" | sed 's .*/  '`
-  BASENAME=`noversion "$FILENAME"`
 
-  # If environment varialbe specifies a preferred mirror, try that first.
+  # If environment variable specifies a preferred mirror, try that first.
 
   [ -z "$PREFERRED_MIRROR" ] || try_download "$PREFERRED_MIRROR/$FILENAME"