We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9a42d1 commit 89b3312Copy full SHA for 89b3312
1 file changed
gprintify
@@ -7,6 +7,7 @@ use warnings;
7
use File::Find;
8
use File::Temp;
9
use File::Slurp;
10
+use List::MoreUtils qw(none);
11
12
my $string_pattern = qr/
13
^
@@ -46,24 +47,16 @@ my $var_pattern = qr/
46
47
(?:
48
\$[a-zA-Z0-9_]+ # simple variable name
49
|
- \${ # protected variable name
50
+ \$\{ # protected variable name
51
[a-zA-Z0-9_]+
- (?:[#%]{1,2}[^}]+)? # with optional expansion pattern
52
- }
+ (?:[#%]{1,2}[^\}]+)? # with optional expansion pattern
53
+ \}
54
)
55
56
/x;
57
58
main(@ARGV) unless caller();
59
-sub none (&@) {
60
- my $f = shift;
61
- foreach ( @_ ) {
62
- return 0 if $f->();
63
64
- return 1;
65
-}
66
-
67
sub main {
68
my $buildroot = $ENV{RPM_BUILD_ROOT};
69
die "No build root defined" unless $buildroot;
0 commit comments