mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-20 07:38:41 +00:00
Automatically setup hooks
This commit is contained in:
parent
24e77ffcfe
commit
0dee83afae
17
setup.sh
17
setup.sh
|
|
@ -29,6 +29,23 @@ cd ${ROOT_PATH}
|
|||
git submodule update --init --recursive
|
||||
git submodule foreach git checkout develop
|
||||
|
||||
echo "Setup hooks"
|
||||
|
||||
# Setup hooks
|
||||
cp ${ROOT_PATH}/Build/Hooks/default.sh ${ROOT_PATH}/.git/hooks/pre-commit
|
||||
cp ${ROOT_PATH}/Build/Hooks/default.sh ${ROOT_PATH}/.git/modules/phpOMS/hooks/pre-commit
|
||||
cp ${ROOT_PATH}/Build/Hooks/default.sh ${ROOT_PATH}/.git/modules/jsOMS/hooks/pre-commit
|
||||
cp ${ROOT_PATH}/Build/Hooks/default.sh ${ROOT_PATH}/.git/modules/Model/hooks/pre-commit
|
||||
cp ${ROOT_PATH}/Build/Hooks/default.sh ${ROOT_PATH}/.git/modules/Modules/hooks/pre-commit
|
||||
cp ${ROOT_PATH}/Build/Hooks/default.sh ${ROOT_PATH}/.git/modules/cssOMS/hooks/pre-commit
|
||||
|
||||
chmod +x ${ROOT_PATH}/.git/hooks/pre-commit
|
||||
chmod +x ${ROOT_PATH}/.git/modules/phpOMS/hooks/pre-commit
|
||||
chmod +x ${ROOT_PATH}/.git/modules/jsOMS/hooks/pre-commit
|
||||
chmod +x ${ROOT_PATH}/.git/modules/Model/hooks/pre-commit
|
||||
chmod +x ${ROOT_PATH}/.git/modules/Modules/hooks/pre-commit
|
||||
chmod +x ${ROOT_PATH}/.git/modules/cssOMS/hooks/pre-commit
|
||||
|
||||
echo "Setup build output"
|
||||
|
||||
# Creating directories for inspection
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user