mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-16 18:51:58 +02:00
simpler regex match on the shebang
The previous pattern didn't match on traditional non-GNU sed(1). https://bugzilla.gnome.org/show_bug.cgi?id=696629
This commit is contained in:
parent
d474309c3f
commit
aba02c5248
@ -430,7 +430,7 @@ install-exec-hook:
|
||||
mv -f "$(DESTDIR)$(bindir)/$$sf" "$(DESTDIR)$(bindir)/$$sf".tmp \
|
||||
&& sed < "$(DESTDIR)$(bindir)/$$sf".tmp > "$(DESTDIR)$(bindir)/$$sf" \
|
||||
-e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
|
||||
-e '1,1s|#! /usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
|
||||
-e '1,1s|#! /usr/bin/env python.*|#!${PYTHON}|' \
|
||||
|| exit $$? ; \
|
||||
chmod a+x $(DESTDIR)$(bindir)/$$sf ; \
|
||||
rm -f "$(DESTDIR)$(bindir)/$$sf".tmp ; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user