Author: ward
Date: 2009-09-02 23:41:13 +0200 (Wed, 02 Sep 2009)
New Revision: 271

Modified:
   buildrom-devel/bin/show-instructions.sh
Log:

Build fix: add a fallback for systems where tempfile is missing

Signed-off-by: Bernie Innocenti <[email protected]>
Acked-by: Ward Vandewege <[email protected]>



Modified: buildrom-devel/bin/show-instructions.sh
===================================================================
--- buildrom-devel/bin/show-instructions.sh     2009-08-24 16:10:31 UTC (rev 
270)
+++ buildrom-devel/bin/show-instructions.sh     2009-09-02 21:41:13 UTC (rev 
271)
@@ -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


-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to