Skip to content

Commit

Permalink
share: do not use sed -i
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkempf committed Sep 20, 2016
1 parent ee7cf82 commit e10ca01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion share/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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-$@ $@

Expand Down

0 comments on commit e10ca01

Please sign in to comment.