Commit e10ca012 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

share: do not use sed -i

parent ee7cf829
......@@ -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-$@ $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment