$NetBSD: patch-aa,v 1.1 2009/09/12 14:06:47 wiz Exp $ --- src/gtk/Makefile.in.orig 2009-05-31 21:06:27.000000000 +0000 +++ src/gtk/Makefile.in @@ -963,18 +963,10 @@ uninstall-am: uninstall-ApplicationsDATA install-data-hook: @for f in "$(DESTDIR)$(Applicationsdir)/yabause.desktop" ; do \ - fext=`echo $$f | sed 's,.\+\(\.[^.]\+\)$$,\1,'` ; \ - fbase=`basename "$$f" $$fext` ; \ - fdir=`dirname "$$f"` ; \ - fdest="$$fdir"/`echo "$$fbase" | sed '$(transform)'`$$fext ; \ - if test \( -e "$$f" \) -a \( ! "$$f" = "$$fdest" \) ; then \ - echo " mv $$f $$fdest" ; \ - mv "$$f" "$$fdest" ; \ - fi ; \ nn=`echo yabause | sed '$(transform)'` ; \ - ftmp=/tmp/$$RANDOM ; \ - sed "s/Exec=yabause/Exec=$$nn/" $$fdest > $$ftmp ; \ - mv $$ftmp $$fdest ; \ + ftmp=$$f.$$$$ ; \ + sed "s/Exec=yabause/Exec=$$nn/" $$f > $$ftmp ; \ + mv $$ftmp $$f ; \ done uninstall-hook: