[vlc-commits] Win32: Fix packaging with broken sed

Jean-Baptiste Kempf git at videolan.org
Thu Aug 16 12:18:17 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 15 23:13:52 2012 +0200| [0aa013896d8e4d0e2ddc31cce32ead7043bfed82] | committer: Jean-Baptiste Kempf

Win32: Fix packaging with broken sed

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 extras/package/win32/package.mak |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/extras/package/win32/package.mak b/extras/package/win32/package.mak
index 28ae82d..a0d2eda 100644
--- a/extras/package/win32/package.mak
+++ b/extras/package/win32/package.mak
@@ -62,8 +62,8 @@ endif
 if BUILD_OSDMENU
 	cp -r $(prefix)/share/vlc/osdmenu "$(win32_destdir)/"
 	for file in $(win32_destdir)/osdmenu/*.cfg; do \
-		sed -i.orig -e 's%share/osdmenu%osdmenu%g' -e 's%/%\\%g' "$$file"; \
-		rm -f -- "$${file}.orig"; \
+		sed -e 's%share/osdmenu%osdmenu%g' -e 's%/%\\%g' "$$file" > "$${file}.tmp"; \
+		mv -f "$${file}.tmp" "$${file}"; \
 	done
 endif
 



More information about the vlc-commits mailing list