use "sed -i.bak <CMD> <FILE> && rm -f <FILE>.bak" syntax for

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
This commit is contained in:
18:02:30 Tim Janik 2007-12-21 17:02:29 +00:00 committed by Tim Janik
parent 1aa0e4b578
commit 0a76f7d6b4
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -326,9 +326,12 @@ CONFIGVARS = \
install-exec-hook:
for sf in ${auto_config_binscripts} ; do \
sed -i "$(DESTDIR)$(bindir)/$$sf" \
sed -i.bak \
-e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
-e '1,1s|#!/usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' || exit $$? ; \
-e '1,1s|#!/usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
"$(DESTDIR)$(bindir)/$$sf" \
|| exit $$? \
&& rm -f "$(DESTDIR)$(bindir)/$$sf".bak ; \
done
endif