Skip to content

Commit

Permalink
makefile: change build-docs target for shells other than bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Helder Moreira authored and helder-moreira committed Oct 2, 2020
1 parent 0047099 commit f2ac04d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ godocs:
# the `versions` file will be the default root index.html.
build-docs:
@cd docs && \
while read -a p; do \
branch=$${p[0]} ; \
path_prefix=$${p[1]} ; \
while read -r branch path_prefix; do \
(git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
mkdir -p ~/output/$${path_prefix} ; \
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
Expand Down

0 comments on commit f2ac04d

Please sign in to comment.