simpler regex match on the shebang
authorAntoine Jacoutot <ajacoutot@gnome.org>
Tue, 26 Mar 2013 11:34:51 +0000 (12:34 +0100)
committerAntoine Jacoutot <ajacoutot@gnome.org>
Sun, 7 Apr 2013 07:09:59 +0000 (09:09 +0200)
The previous pattern didn't match on traditional non-GNU sed(1).
https://bugzilla.gnome.org/show_bug.cgi?id=696629

glib/Makefile.am

index 9230ecc..021a26a 100644 (file)
@@ -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 ; \