Avoid copying iso_files as a subfolder of an existing iso_files.tmp if the latter was not cleaned correctly

This commit is contained in:
Georges Dupéron 2018-09-23 09:38:50 +02:00
parent 01ea5827b2
commit 94deee14b0
No known key found for this signature in database
GPG Key ID: C7976374130A80F7

View File

@ -188,7 +188,8 @@ ${bld}/os.32k: example-os/os.asm ${bld}/check_makefile
nasm -w+macro-params -w+macro-selfref -w+orphan-labels -w+gnu-elf-extensions -o $@ $<
${bld}/os.iso: ${bld}/iso_files/os.zip ${bld}/iso_files/boot/iso_boot.sys ${bld}/check_makefile
cp -a -- ${bld}/iso_files ${bld}/iso_files.tmp
! test -d ${bld}/iso_files.tmp
cp -a -T -- ${bld}/iso_files ${bld}/iso_files.tmp
find ${bld}/iso_files.tmp -depth -exec touch -t ${commit_timestamp} '{}' ';'
faketime -f ${commit_faketime} mkisofs \
--input-charset utf-8 \