Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 43049b1

Browse files
committed
[Docs] Improve make versions to use git stash
1 parent a5a20de commit 43049b1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,14 @@ help:
6161
versions:
6262
rm python-openflow -rf && mkdir python-openflow
6363
for version in `echo $(VERSIONS) | sed 's/,/ /g'`; do \
64-
git checkout $$version \
64+
git stash \
65+
&& git checkout $$version \
66+
&& git stash pop \
6567
&& make SPHINXOPTS="-A versions=\"$(VERSIONS)\" -A current_version=\"$$version\"" \
6668
&& mv _build/dirhtml python-openflow/$$version; \
6769
done
6870
cp python-openflow/$(MAIN_REF)/* python-openflow/ -R
71+
git stash && git checkout master && git stash pop
6972

7073
.PHONY: clean
7174
clean:

0 commit comments

Comments
 (0)