[vlc-commits] contrib: remove intermediate files from download_git

Rémi Denis-Courmont git at videolan.org
Tue Feb 21 17:27:21 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb 21 18:26:53 2017 +0200| [0fc41cae40938ff9bff933d1b75930970440dca7] | committer: Rémi Denis-Courmont

contrib: remove intermediate files from download_git

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

 contrib/src/main.mak | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 2196846..adef0cc 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -332,8 +332,9 @@ download_git = \
 	$(GIT) archive --prefix="$(notdir $(@:.tar.xz=))/" \
 		--format=tar "$(3)") > "$(@:.xz=)" && \
 	echo "$(3) $(@)" > "$(@:.tar.xz=.githash)" && \
-	rm -Rf -- "$(@:.tar.xz)" && \
+	rm -Rf -- "$(@:.tar.xz=)" && \
 	$(XZ) --stdout "$(@:.xz=)" > "$@.tmp" && \
+	rm -f "$(@:.xz=)" && \
 	mv -f -- "$@.tmp" "$@"
 check_githash = \
 	h=`sed -n -e "s,^\([0-9a-fA-F]\{40\}\) $<,\1,p" \



More information about the vlc-commits mailing list