aboutsummaryrefslogtreecommitdiffstats
path: root/extra/update_gh-pages.sh
blob: 9f08b8a331033bcaa47d1cbc39443f70d1f6fbd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -e -u -o pipefail

cd rust
cargo doc
mkdir -p /tmp/fatcat-ghpages
cp -r release/doc/fatcat release/doc/fatact_api_spec /tmp/fatcat-ghpages
cd ..
git checkout gh-pages
mv /tmp/fatcat-ghpages/* .
git add -u fatcat fatact_api_spec
git commit -m "updating rendered manpage for github docs" || true
git checkout master
rm -r /tmp/fatcat-ghpages

echo "DONE"