@@ -9,62 +9,36 @@ mkdir -p deploy/oas
99mkdir -p deploy/js
1010
1111cd scripts/md2html
12- mkdir -p history
13- cat > history/MAINTAINERS_v2.0.md << EOF
14- ## Active
15- * Jeremy Whitlock [@whitlockjc](https://github.com/whitlockjc)
16- * Marsh Gardiner [@earth2marsh](https://github.com/earth2marsh)
17- * Ron Ratovsky [@webron](https://github.com/webron)
18- * Tony Tam [@fehguy](https://github.com/fehguy)
19- EOF
20- cat > history/MAINTAINERS_v3.0.0.md << EOF
21- ## Active
22- * Jeremy Whitlock [@whitlockjc](https://github.com/whitlockjc)
23- * Marsh Gardiner [@earth2marsh](https://github.com/earth2marsh)
24- * Ron Ratovsky [@webron](https://github.com/webron)
25- * Tony Tam [@fehguy](https://github.com/fehguy)
26-
27- ## Emeritus
28- * Jason Harmon [@jharmn](https://github.com/jharmn)
29- EOF
30- git show c740e95:MAINTAINERS.md > history/MAINTAINERS_v3.0.1.md
31- git show 3140640:MAINTAINERS.md > history/MAINTAINERS_v3.0.2.md
32- cp history/MAINTAINERS_v3.0.2.md history/MAINTAINERS_v3.0.3.md
33- cp history/MAINTAINERS_v3.0.2.md history/MAINTAINERS_v3.1.0.md
34- # TODO: adjust commit for 3.0.4, 3.1.1
35- git show c3b88ed:EDITORS.md > history/MAINTAINERS_v3.0.4.md
36- cp history/MAINTAINERS_v3.0.4.md history/MAINTAINERS_v3.1.1.md
37- # add lines for 3.2.0, ...
3812
3913cp -p ../../node_modules/respec/builds/respec-w3c.* ../../deploy/js/
4014
4115latest=` git describe --abbrev=0 --tags`
4216latestCopied=none
4317lastMinor=" -"
4418for filename in $( ls -1 ../../versions/[23456789].* .md | sort -r) ; do
19+ if [[ ${filename} == * -editors.md ]]; then
20+ continue
21+ fi
22+
4523 version=$( basename " $filename " .md)
4624 minorVersion=${version: 0: 3}
4725 tempfile=../../deploy/oas/v$version -tmp.html
4826 echo -e " \n=== v$version ==="
4927
50- node md2html.js --maintainers ./history/MAINTAINERS_v $version .md ${filename} > $tempfile
28+ node md2html.js --maintainers ../../versions/ $version -editors .md ${filename} > $tempfile
5129 npx respec --use-local --src $tempfile --out ../../deploy/oas/v$version .html
5230 rm $tempfile
5331
5432 if [ $version = $latest ]; then
5533 if [[ ${version} != * " rc" * ]]; then
5634 # version is not a Release Candidate
57- pushd ../../deploy/oas
58- ln -sf v$version .html latest.html
59- popd
35+ ( cd ../../deploy/oas && ln -sf v$version .html latest.html )
6036 latestCopied=v$version
6137 fi
6238 fi
6339
6440 if [ ${minorVersion} != ${lastMinor} ] && [ ${minorVersion} != 2.0 ]; then
65- pushd ../../deploy/oas
66- ln -sf v$version .html v$minorVersion .html
67- popd
41+ ( cd ../../deploy/oas && ln -sf v$version .html v$minorVersion .html )
6842 lastMinor=$minorVersion
6943 fi
7044done
0 commit comments