From: Michael Brown Date: Sun, 2 Aug 2009 10:17:02 +0000 (+0100) Subject: [build] Allow safe concurrent builds of .iso, .liso and .sdsk targets X-Git-Tag: v0.9.8~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f42b2932f8cd55583a9e024ad4cf7484f17fb7fa;p=thirdparty%2Fipxe.git [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. --- diff --git a/src/util/geniso b/src/util/geniso index d7ddbd2b6..57e47471e 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 <