Skip to content

Commit d1d1b51

Browse files
committed
ngx-releng: check both README.markdown and README.md.
1 parent 790117a commit d1d1b51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ngx-releng

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ if [ -n "$wiki_file" -a -f "$wiki_file" ]; then
77
#pod2text /tmp/a.pod > README || exit 1
88
fi
99

10-
ack '(?<=This document describes )(?:.*-nginx-module|ngx_\w+) .*?v(\d+\.\d[^\s\]]*)' README.markdown
10+
if [ -f README.markdown ]; then
11+
ack '(?<=This document describes )(?:.*-nginx-module|ngx_\w+) .*?v(\d+\.\d[^\s\]]*)' README.markdown
12+
elif [ -f README.md ]; then
13+
ack '(?<=This document describes )(?:.*-nginx-module|ngx_\w+) .*?v(\d+\.\d[^\s\]]*)' README.md
14+
fi
1115

1216
echo =======================================
1317

0 commit comments

Comments
 (0)