mirror of https://github.com/CrimsonTome/tldr.git
Merge pull request #1 from rubenvereecken/index-git-hook
Adds `make setup` and a pre-commit hook to rebuild index.waldyrious/alt-syntax
commit
0a3ab78615
5
Makefile
5
Makefile
|
@ -1,3 +1,8 @@
|
||||||
index:
|
index:
|
||||||
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
@TLDRHOME=`pwd` ./scripts/build_index.rb
|
||||||
@echo "Index rebuilt."
|
@echo "Index rebuilt."
|
||||||
|
|
||||||
|
setup:
|
||||||
|
@cp ./scripts/pre-commit .git/hooks
|
||||||
|
@chmod +x .git/hooks/pre-commit
|
||||||
|
@echo "Git pre-commit hook installed."
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
make index
|
||||||
|
git add ./pages/index.json
|
Loading…
Reference in New Issue