[coreboot] [PATCH] Build fix: add a fallback for systems where tempfile is missing

Bernie Innocenti bernie at codewiz.org
Mon Apr 6 22:21:37 CEST 2009


Signed-off-by: Bernie Innocenti <bernie at codewiz.org>

Index: bin/show-instructions.sh
===================================================================
--- bin/show-instructions.sh	(revision 261)
+++ bin/show-instructions.sh	(working copy)
@@ -1,6 +1,6 @@
 #!/bin/sh

-tmp=`tempfile`
+tmp=`tempfile 2>/dev/null || echo /tmp/show-instructions.$$`
 cat $1 | sed -e "s:%DESTFILE%:$2:" > $tmp

 if [ -x `dirname $0`/../scripts/kconfig/lxdialog/lxdialog ]; then

-- 
   // Bernie Innocenti - http://www.codewiz.org/
 \X/  Sugar Labs       - http://www.sugarlabs.org/




More information about the coreboot mailing list