File: update-docs.sh

package info (click to toggle)
python-rtmidi 1.5.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,248 kB
  • sloc: cpp: 4,228; python: 2,853; makefile: 287; sh: 109; ansic: 19
file content (14 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#
# update-docs.sh - Build documentation, update gh-pages branch and push changes

git checkout master || exit 1
git pull
make docs
git checkout gh-pages || exit 1
rsync -av docs/_build/html/ .
git add -A
COMMIT="$(git log -n 1 --pretty=format:"%h" master)"
git commit -m "Update docs for commit $COMMIT"
git push
git checkout master