From patchwork Wed Sep 2 20:12:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PATCH: do not rely on "tempfile" being available Date: Wed, 02 Sep 2009 20:12:21 -0000 From: Bernie Innocenti X-Patchwork-Id: 241 Message-Id: <1251922341.1487.57.camel@giskard> To: coreboot@coreboot.org Signed-off-by: Bernie Innocenti Build fix: add a fallback for systems where tempfile is missing Acked-by: Ward Vandewege 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