When tar fails, it does not remove the output file

This commit is contained in:
Allan Odgaard
2014-04-05 18:14:27 +07:00
parent 30b4d9322d
commit 75dc734a87

View File

@@ -913,7 +913,7 @@ rule sign_executable
description = Sign $in
rule tbz_archive
command = tar $bzip2_flag -cf $out -C "$$(dirname $in)" "$$(basename $in)"
command = tar $bzip2_flag -cf $out~ -C "$$(dirname $in)" "$$(basename $in)" && mv $out~ $out
generator = true
description = Archive $in