build: revised build scripts
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# get absolute path to parent directory of script
|
||||
MY_PATH=`dirname "$0"`
|
||||
if [[ "${MY_PATH}" != *\\* ]]
|
||||
then
|
||||
cd $MY_PATH
|
||||
MY_PATH=`pwd`
|
||||
fi
|
||||
MY_PATH="${MY_PATH//\\//}"
|
||||
|
||||
cd ${MY_PATH}/..
|
||||
|
||||
git config commit.template setup/git/git_commit_template.txt
|
||||
git config color.ui true
|
||||
if [ -d ".git/hooks" ]; then
|
||||
cp setup/git/git_pre_commit_hook.sh .git/hooks/pre-commit
|
||||
cp setup/git/git_pre_push_hook.sh .git/hooks/pre-push
|
||||
fi
|
||||
Reference in New Issue
Block a user