Skip to content
Snippets Groups Projects
Commit 2b39df75 authored by robjmcgibbon's avatar robjmcgibbon
Browse files

Bugfix in make_page.sh

parent d4c267e1
Branches master
No related tags found
No related merge requests found
#!/bin/bash
#!/bin/bash -l
set -e
......@@ -23,7 +23,7 @@ rsync -auv compiled/* ../
[ ! -d "swift" ] && git clone "git@gitlab.cosma.dur.ac.uk:swift/swiftsim.git" "swift"
cd swift
git checkout master
[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ] && git checkout master
git pull
# Generate read the docs
cd doc/RTD
......@@ -42,7 +42,7 @@ cp swift/doc/onboardingGuide/build/latex/onboarding.pdf ../onboarding.pdf
# Generate read the docs for the zoom branch
[ ! -d "swift_will" ] && git clone "git@gitlab.cosma.dur.ac.uk:swift/swiftsim.git" "swift_will"
cd swift_will
git checkout zoom_docs
[ "$(git rev-parse --abbrev-ref HEAD)" != "zoom_docs" ] && git checkout zoom_docs
git pull
cd doc/RTD
[ -d "build" ] && rm -rf build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment