2007-12-21 18:02:30 Tim Janik <timj@imendio.com>
* glib/Makefile.am: use "sed -i.bak <CMD> <FILE> && rm -f <FILE>.bak"
syntax for install-exec-hook, which seems to be the only "sed -i"
variant that is portable across linux and MacOS.
svn path=/trunk/; revision=6187
+2007-12-21 18:02:30 Tim Janik <timj@imendio.com>
+
+ * glib/Makefile.am: use "sed -i.bak <CMD> <FILE> && rm -f <FILE>.bak"
+ syntax for install-exec-hook, which seems to be the only "sed -i"
+ variant that is portable across linux and MacOS.
+
2007-12-21 Matthias Clasen <mclasne@redhat.com>
* glib/gtestutils.h: Bring up to GLib coding standards: remove
install-exec-hook:
for sf in ${auto_config_binscripts} ; do \
- sed -i "$(DESTDIR)$(bindir)/$$sf" \
- -e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
- -e '1,1s|#!/usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' || exit $$? ; \
+ sed -i.bak \
+ -e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
+ -e '1,1s|#!/usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
+ "$(DESTDIR)$(bindir)/$$sf" \
+ || exit $$? \
+ && rm -f "$(DESTDIR)$(bindir)/$$sf".bak ; \
done
endif