[glib] simpler regex match on the shebang



commit aba02c5248ef1a8911588e38f56d011f81e21345
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Tue Mar 26 12:34:51 2013 +0100

    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

 glib/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/Makefile.am b/glib/Makefile.am
index 9230ecc..021a26a 100644
--- a/glib/Makefile.am
+++ b/glib/Makefile.am
@@ -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 ; \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]