Files
linux-kernel-module-cheat/publish-gh-pages
Ciro Santilli 2b436adf36 split header
2021-07-27 16:52:31 +01:00

19 lines
386 B
Bash
Executable File

#!/usr/bin/env bash
# https://cirosantilli.com/linux-kernel-module-cheat#github-pages
set -eu
git push
./build-doc --github-pages
git checkout gh-pages
git checkout master -- \
.gitignore \
'*.png' \
_config.yml \
;
cp out/README.html index.html
cp out/doc/* .
mv README.html index.html
git add .
git commit --message "$(git log -n1 --pretty='%H' master)"
git push
git checkout -