[coreboot] PATCH: do not rely on tempfile being available

2009-09-02 Thread Bernie Innocenti
Signed-off-by: Bernie Innocenti ber...@codewiz.org

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

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://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/


-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] PATCH: do not rely on tempfile being available

2009-09-02 Thread Ward Vandewege
On Wed, Sep 02, 2009 at 04:12:21PM -0400, Bernie Innocenti wrote:
 Signed-off-by: Bernie Innocenti ber...@codewiz.org
 
 Build fix: add a fallback for systems where tempfile is missing

Acked-by: Ward Vandewege w...@gnu.org

Committed in r271.

Thanks,
Ward.

-- 
Ward Vandewege w...@fsf.org
Free Software Foundation - Senior Systems Administrator

-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot