1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:22:09 +02:00

Added make setup and a pre-commit hook to rebuild index.

This commit is contained in:
Ruben Vereecken 2015-04-09 13:19:48 +02:00
parent e9d658923d
commit a98b6b9938
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
index:
@TLDRHOME=`pwd` ./scripts/build_index.rb
@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

4
scripts/pre-commit Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
make index
git add ./pages/index.json