mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
16 lines
402 B
Bash
Executable File
16 lines
402 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# https://github.com/cirosantilli/linux-kernel-module-cheat#github-pages
|
|
set -eu
|
|
git push
|
|
./build-doc --github-pages
|
|
git branch -D gh-pages
|
|
git checkout --orphan gh-pages
|
|
git reset
|
|
cp out/README.html index.html
|
|
git add _config.yml index.html
|
|
git commit --message "$(git log -n1 --pretty='%H' master)"
|
|
git push --force
|
|
git symbolic-ref HEAD refs/heads/master
|
|
git reset
|
|
rm index.html
|