gh-pages makefile

pull/10/head
sobolevn 8 years ago
parent 36061e6962
commit 8d6df3c8a4

@ -26,6 +26,9 @@ build-man:
@if [ ! `gem list ronn -i` == "true" ]; then make install-man; fi
ronn --roff man/man1/*.ronn
build-gh-pages:
@/usr/bin/env bash utils/gh-branch.sh
install-hooks:
@ln -fs "${PWD}/utils/pre-commit.sh" "${PWD}/.git/hooks/pre-commit"
@chmod +x "${PWD}/.git/hooks/pre-commit"

@ -32,11 +32,13 @@ You can add you platform to this list, if all the tests passes for you.
There are several ways to install `git-secret`:
**The hard way**
1. Clone the repository first: `git clone https://github.com/sobolevn/git-secret.git git-secret`
2. Run `cd git-secret && make build`
3. Move `git-secret` file and `man/` folder somewhere inside your `$PATH`, or extend your `$PATH` to contain `git-secret` file and `man/` folder
**`antigen` plugin (or any other `oh-my-zsh`-styled plugin-systems)**
1. Add line `antigen bundle sobolevn/git-secret` to your `.zshrc`
2. Run `source ~/.zshrc` or reopen the terminal

@ -1,8 +1,14 @@
#!/usr/bin/env bash
set -e
function update_gh_branch {
git checkout gh-pages
make
git add --all
git commit -m 'documentation update'
}
update_gh_branch

Loading…
Cancel
Save