|
@@ -7,8 +7,12 @@ setup:
|
|
|
@chmod +x .git/hooks/pre-commit
|
|
|
@echo "Git pre-commit hook installed."
|
|
|
|
|
|
- @gem install mdl --install-dir .gem
|
|
|
+ @gem install mdl --install-dir .gem --no-rdoc --no-ri
|
|
|
@echo "Installed required Ruby gems under .gem"
|
|
|
|
|
|
lint:
|
|
|
- @GEM_PATH=.gem PATH=$(PATH):.gem/bin find pages -exec mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
|
|
|
+ @GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
|
|
|
+
|
|
|
+lint-changed:
|
|
|
+ @./scripts/lint-changed.sh
|
|
|
+
|