From f42b2932f8cd55583a9e024ad4cf7484f17fb7fa Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 2 Aug 2009 11:17:02 +0100 Subject: [PATCH] [build] Allow safe concurrent builds of .iso, .liso and .sdsk targets The geniso, genliso and gensdsk scripts contain hard-coded temporary directory names, and so could potentially collide with each other when run as part of a concurrent build (e.g. "make -j 4"). Fix by using mktemp to generate suitable temporary directory names. --- src/util/geniso | 3 +-- src/util/genliso | 5 ++--- src/util/gensdsk | 5 ++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/util/geniso b/src/util/geniso index d7ddbd2b..57e47471 100755 --- a/src/util/geniso +++ b/src/util/geniso @@ -22,8 +22,7 @@ then fi out=$1 shift -dir=bin/iso.dir -mkdir -p $dir +dir=`mktemp -d bin/iso.dir.XXXXXX` cfg=$dir/isolinux.cfg cp -p $isolinux_bin $dir cat > $cfg < $cfg < $cfg <