[vlc-commits] share: do not use sed -i
Jean-Baptiste Kempf
git at videolan.org
Tue Sep 20 19:17:30 CEST 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep 20 19:04:26 2016 +0200| [e10ca012b6884759027548eb759c8845d5e98487] | committer: Jean-Baptiste Kempf
share: do not use sed -i
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e10ca012b6884759027548eb759c8845d5e98487
---
share/Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/share/Makefile.am b/share/Makefile.am
index e404f2c..b2ec200 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -17,7 +17,8 @@ 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-$@ > tmp2-$@
+ $(AM_V_at)mv -f tmp2-$@ tmp-$@
$(AM_V_at)$(DESKTOP_FILE_VALIDATE) tmp-$@
$(AM_V_at)mv -f tmp-$@ $@
More information about the vlc-commits
mailing list