55# run this script from the root of the repo
66# It is designed to be run by a GitHub workflow
77
8- # Usage: build.sh [version | "latest" | "oas "]
8+ # Usage: build.sh [version | "latest" | "src "]
99# When run with no arguments, it builds artifacts for all published specification versions.
1010# It may also be run with a specific version argument, such as "3.1.1" or "latest"
11- # Finally, it may be run with "oas " to build "src/oas.md"
11+ # Finally, it may be run with "src " to build "src/oas.md"
1212#
1313# It contains bashisms
1414
@@ -56,7 +56,7 @@ if [ -z "$1" ]; then
5656 specifications=$( ls -1 versions/[23456789].* .md | sort -r)
5757elif [ " $1 " = " latest" ]; then
5858 specifications=$( ls -1 versions/$latest .md)
59- elif [ " $1 " = " oas " ]; then
59+ elif [ " $1 " = " src " ]; then
6060 specifications=" src/oas.md"
6161else
6262 specifications=$( ls -1 versions/$1 .md)
@@ -70,7 +70,7 @@ for specification in $specifications; do
7070 destination=" $deploydir /$version .html"
7171 tempfile=" $deploydir /temp/$version .html"
7272
73- if [ " $1 " = " oas " ]; then
73+ if [ " $1 " = " src " ]; then
7474 maintainers=" EDITORS.md"
7575 else
7676 maintainers=" history/MAINTAINERS_v$version .md"
0 commit comments