Skip to content

Commit

Permalink
Drop all use of sudo
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 8, 2024
1 parent 9e42409 commit 4fb2ddc
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions ci/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,21 @@ show-green () {
echo -e "${GREEN} ==> ${1} ${NC}"
}

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

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

# make documentation
show-green "Building documentation"
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
./make-doc.sh
mkdir deploy
mv doc/_build/html deploy/sugar3
touch deploy/.nojekyll
# create an index.html so that users don't become confused
show-green "Writing 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
echo "<h1>Page Moved</h1>" > deploy/index.html
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
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 4fb2ddc

Please sign in to comment.