Merge branch 'ignore'

This commit is contained in:
Tj Holowaychuk 2010-08-05 07:39:31 -07:00
commit 398e84be9b
2 changed files with 12 additions and 0 deletions

View file

@ -2,6 +2,7 @@
PREFIX = /usr/local
BINS = bin/git-count \
bin/git-ignore \
bin/git-release
install:
@ -9,6 +10,7 @@ install:
uninstall:
rm -f $(PREFIX)/bin/git-count
rm -f $(PREFIX)/bin/git-ignore
rm -f $(PREFIX)/bin/git-release
.PHONY: install uninstall

10
bin/git-ignore Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env sh
if test $# -eq 0; then
echo "arguments required" && exit 1
else
for pattern in $@; do
echo "... adding '$pattern' to .gitignore"
echo $pattern >> .gitignore
done
fi