[gimp-perl] Reduce false positives in make setver.



commit 805186bc64a0632cb79fe2aac431be5a87c2b992
Author: Ed J <edj src gnome org>
Date:   Thu Jul 10 05:14:38 2014 +0100

    Reduce false positives in make setver.

 Makefile.PL |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index dc451a5..244e271 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -9,7 +9,7 @@ require './config.pl';
 
 sub MY::postamble {
    my $self=shift;
-   <<EOF;
+   <<'EOF';
 install-po:
        cd po && \$(MAKE) install
 
@@ -22,7 +22,7 @@ tags: .
 
 # set \$VERSION in all modules
 setver:
-       \$(PERL) -pi -e 's/^(\\s*(?:our)?\\s*\\\$\$VERSION\\s*=\\s*).*;/\$\${1}"\$(VERSION)";/' Gimp/*.pm 
UI/*.pm Net/*.pm
+       $(PERL) -pi -e 's/^(\s*(?:our)?\s*\$$VERSION\s*=\s*)[^a-z]*;/$${1}"$(VERSION)";/' Gimp/*.pm UI/*.pm 
Net/*.pm
 
 EOF
 }


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