[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.
This commit is contained in:
Michael Brown
2009-08-02 11:17:02 +01:00
parent b570c2efd8
commit f42b2932f8
3 changed files with 5 additions and 8 deletions

View File

@@ -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 <<EOF