[vlc-commits] share: do not use sed -i

Jean-Baptiste Kempf git at videolan.org
Tue Sep 20 19:05:00 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep 20 19:04:26 2016 +0200| [6bdf7629fff751b1c5f3eb6214a7aca92bbd8e44] | committer: Jean-Baptiste Kempf

share: do not use sed -i

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

 share/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/Makefile.am b/share/Makefile.am
index e404f2c..1ae4923 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -17,7 +17,7 @@ CLEANFILES += $(desktop_DATA) $(appdata_DATA)
 
 vlc.desktop: vlc.desktop.in $(top_builddir)/config.status
 	$(AM_V_GEN)sed -e 's,\@bindir\@,$(bindir),g' < "$<" > tmp-$@
-	$(AM_V_GEN)mimetypes="$$(sed 's/\s*#.*$$//g' $(srcdir)/vlc.desktop.mimetypes | egrep -v '^$$' | tr "\n" ';')"; sed -i "s,\@MIMETYPES\@,$$mimetypes,g" tmp-$@
+	$(AM_V_GEN)mimetypes="$$(sed 's/\s*#.*$$//g' $(srcdir)/vlc.desktop.mimetypes | egrep -v '^$$' | tr "\n" ';')"; sed -e "s,\@MIMETYPES\@,$$mimetypes,g" < "$<" > tmp-$@
 	$(AM_V_at)$(DESKTOP_FILE_VALIDATE) tmp-$@
 	$(AM_V_at)mv -f tmp-$@ $@
 



More information about the vlc-commits mailing list