mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
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:
parent
1aa0e4b578
commit
0a76f7d6b4
@ -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>
|
2007-12-21 Matthias Clasen <mclasne@redhat.com>
|
||||||
|
|
||||||
* glib/gtestutils.h: Bring up to GLib coding standards: remove
|
* glib/gtestutils.h: Bring up to GLib coding standards: remove
|
||||||
|
@ -326,9 +326,12 @@ CONFIGVARS = \
|
|||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
for sf in ${auto_config_binscripts} ; do \
|
for sf in ${auto_config_binscripts} ; do \
|
||||||
sed -i "$(DESTDIR)$(bindir)/$$sf" \
|
sed -i.bak \
|
||||||
-e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
|
-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
|
done
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user