changeset 776:37c083cca810

Move doforklog to sources/functions.sh.
author Rob Landley <rob@landley.net>
date Thu, 02 Jul 2009 14:12:25 -0500
parents f43389fc2452
children 879353d1cfba
files buildall.sh sources/functions.sh
diffstat 2 files changed, 16 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/buildall.sh	Thu Jul 02 00:54:08 2009 -0500
+++ b/buildall.sh	Thu Jul 02 14:12:25 2009 -0500
@@ -14,20 +14,6 @@
 DO_SKIP_STAGE_TARBALLS="$SKIP_STAGE_TARBALLS"
 [ ! -z "$CROSS_COMPILERS_EH" ] && DO_SKIP_STAGE_TARBALLS=1
 
-# Run command in the background or foreground, depending on $FORK
-
-doforklog()
-{
-  [ -z "$LOG" ] && LOG=/dev/null
-
-  if [ ! -z "$FORK" ]
-  then
-    $* 2>&1 | tee "$LOG" | grep '^===' &
-  else
-    $* 2>&1 | tee "$LOG"
-  fi
-}
-
 # Perform initial setup that doesn't parallelize well: Download source,
 # build host tools, extract source.
 
--- a/sources/functions.sh	Thu Jul 02 00:54:08 2009 -0500
+++ b/sources/functions.sh	Thu Jul 02 14:12:25 2009 -0500
@@ -552,3 +552,19 @@
     link_arch_name $1-{$ARCH,$ARCH_NAME}.tar.bz2
   fi
 }
+
+# Run a command either in foreground or background, depending on $FORK
+# Log to the file $LOG
+
+doforklog()
+{
+  [ -z "$LOG" ] && LOG=/dev/null
+
+  if [ ! -z "$FORK" ]
+  then
+    $* 2>&1 | tee "$LOG" | grep '^===' &
+  else
+    $* 2>&1 | tee "$LOG"
+  fi
+}
+