Skip to content

Commit

Permalink
Specify sudo user
Browse files Browse the repository at this point in the history
Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
  • Loading branch information
chimosky committed Apr 6, 2024
1 parent 2cd4333 commit 9e42409
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ci/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ show-green () {
}

# clone repo
sudo git clone https://github.com/sugarlabs/sugar-toolkit-gtk3.git
sudo -u builduser git clone https://github.com/sugarlabs/sugar-toolkit-gtk3.git
cd sugar-toolkit-gtk3

# make source
show-green "Compiling"
sudo ./autogen.sh --with-python3
sudo make
sudo -u builduser ./autogen.sh --with-python3
sudo -u builduser make

# make documentation
show-green "Building documentation"
sudo ./make-doc.sh
sudo mkdir deploy
sudo mv doc/_build/html deploy/sugar3
sudo touch deploy/.nojekyll
sudo -u builduser ./make-doc.sh
sudo -u builduser mkdir deploy
sudo -u builduser mv doc/_build/html deploy/sugar3
sudo -u builduser touch deploy/.nojekyll
# create an index.html so that users don't become confused
show-green "Writing index.html"
sudo echo "<h1>Page Moved</h1>" > deploy/index.html
sudo echo "<p>We have moved this page to <a href=\"https://github.com/sugarlabs/sugar-docs/blob/master/README.md\">GitHub</a>.</p>" >> deploy/index.html
sudo -u builduser echo "<h1>Page Moved</h1>" > deploy/index.html
sudo -u builduser echo "<p>We have moved this page to <a href=\"https://github.com/sugarlabs/sugar-docs/blob/master/README.md\">GitHub</a>.</p>" >> deploy/index.html
sudo echo "<p>How did you get here? Please <a href=\"https://github.com/sugarlabs/sugar-docs/issues\">report</a> any lingering links.</p>" >> deploy/index.html

show-green "Done"

0 comments on commit 9e42409

Please sign in to comment.