$ cat .git/hooks/pre-commit
#!/bin/bash
#
# This command prevent commit if total file size exceeds error is occured.
#
#!/bin/bash | |
# | |
# git-feature-start - Git リポジトリディレクトリで、指定したブランチ名でブランチを作成し、合わせてリモートブランチも作成するコマンド | |
# | |
pushd `dirname $0` >/dev/null 2>&1 | |
[ $? -eq 1 ] && exit 1 | |
__script_dir=`pwd` | |
popd >/dev/null 2>&1 | |
__base_dir=`dirname ${__script_dir}` |
cat <<__EOF__ | |
hoge | |
foo | |
__EOF__ |
$ cat .git/hooks/pre-commit
#!/bin/bash
#
# This command prevent commit if total file size exceeds error is occured.
#
#!/bin/bash | |
# | |
grunt jshint | |
[ $? -ne 0 ] && echo "grunt jshint error" && exit 1 | |
exit 0 |
__os=$(shell uname) | |
__wget=$(shell which wget) | |
__tar=$(shell which tar) | |
__make=$(shell which make) | |
__mkdir=$(shell which mkdir) | |
__cp=$(shell which cp) | |
__rm=$(shell which rm) | |
__prefix=$(shell pwd)/build | |
__include=$(__prefix)/include |