[vlc-commits] skins2: do not generate (broken) default.vlt on error

Rémi Denis-Courmont git at videolan.org
Fri Oct 21 15:10:08 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 21 16:08:25 2016 +0300| [096c3544b55a88ca07ece9a5624671484e362945] | committer: Rémi Denis-Courmont

skins2: do not generate (broken) default.vlt on error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=096c3544b55a88ca07ece9a5624671484e362945
---

 share/Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/share/Makefile.am b/share/Makefile.am
index 50ff05b..f0bcb4c 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -89,10 +89,12 @@ skins2_default_vlt_FILES = \
 
 skins2/default.vlt: $(skins2_default_vlt_FILES)
 	$(AM_V_at)mkdir -p skins2
+	$(AM_V_at)rm -f -- skins2/default.vlt.tmp
 	$(AM_V_GEN)GZIP=--no-name \
-	tar cvvzf skins2/default.vlt \
+	tar cvvzf skins2/default.vlt.tmp \
 		--owner=root --group=root --directory="$(srcdir)/skins2" \
 		default/
+	$(AM_V_at)mv -f -- skins2/default.vlt.tmp skins2/default.vlt
 
 #
 # LUA



More information about the vlc-commits mailing list