Skip to content

Commit aa4aa0d

Browse files
committed
Run build-src without changing directory
1 parent bf9155d commit aa4aa0d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

scripts/md2html/build-src.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@ mkdir -p deploy-preview/js
99

1010
cp -p node_modules/respec/builds/respec-w3c.* deploy-preview/js/
1111

12-
cd scripts/md2html
13-
1412
filename=src/oas.md
15-
tempfile=../../deploy-preview/temp/oas.html
13+
tempfile=deploy-preview/temp/oas.html
1614
echo "=== ${filename} ==="
1715

18-
node md2html.js --maintainers ../../EDITORS.md ../../${filename} > $tempfile
19-
npx respec --use-local --src $tempfile --out ../../deploy-preview/oas.html
16+
node scripts/md2html/md2html.js --maintainers EDITORS.md ${filename} > $tempfile
17+
npx respec --use-local --src $tempfile --out deploy-preview/oas.html
2018
rm $tempfile
2119

2220
echo Built deploy-preview/oas.html
2321
echo
2422

25-
rm -r ../../deploy-preview/js
26-
rmdir ../../deploy-preview/temp
23+
rm -r deploy-preview/js
24+
rmdir deploy-preview/temp

0 commit comments

Comments
 (0)