Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

various updates in the ngx-links, ngx-releng, and srclines scripts.

  • Loading branch information...
commit e500e167a5d64d67c0863d852cd939f6707ba086 1 parent b05a1ff
@agentzh agentzh authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  ngx-links
  2. +1 −1  ngx-releng
  3. +1 −1  srclines
View
2  ngx-links
@@ -32,7 +32,7 @@ while (my $entry = readdir $dir) {
next;
}
- if ($entry =~ m{ ^ ngx_ (?: \w+ _ )+ (\w+) \. ([ch]|rl) $}x) {
+ if ($entry =~ m{ ^ (?:ngx|ndk)_ (?: \w+ _ )* (\w+) \. ([ch]|rl) $}x) {
($base, $ext) = ($1, $2);
} else {
next;
View
2  ngx-releng
@@ -13,7 +13,7 @@ echo =======================================
ack '(?<=\#define)\s*DDEBUG\s*[1-9]' src && exit 1
ack '.{81}' src/ngx_*.[ch]
-ack '//' src/ngx_*.[ch]
+ack '(?<!:)//' src/ngx_*.[ch]
ack '^master_on' t && exit 1
ack '\b(?:ONLY|LAST)\b' t
ack -l '\r\n' t
View
2  srclines
@@ -22,7 +22,7 @@ for my $file (@ARGV) {
$src =~ s/^\s+--.*//gm;
$src =~ s/^\s*\n//gm;
- } elsif ($ext eq 'h' || $ext eq 'c' || $ext eq 'cc' || $ext eq 'cpp') {
+ } elsif ($ext =~ /^(?:[ch]|cc|cpp|y)$/) {
$src =~ s{^\#[ \t]*if[ \t]+(?:0|\(?NGX_DEBUG\)?)[ \t]*\n.*?\n\#endif\b.*?\n}{}gms;
$src =~ s{/\*.*?\*/}{}gs;
$src =~ s{//[^\n]*}{}gs;
Please sign in to comment.
Something went wrong with that request. Please try again.