-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zfsetup.sh
21 lines (16 loc) · 995 Bytes
/
zfsetup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
WORK_DIR=$(cd "$(dirname "$0")"; pwd)
ZF_ROOT_PATH=$WORK_DIR/../ZFFramework
if ! test -e "$ZF_ROOT_PATH/tools"; then
rm -rf "$ZF_ROOT_PATH" >/dev/null 2>&1
git clone "https://github.com/ZFFramework/ZFFramework.git" "$ZF_ROOT_PATH"
fi
sh "$ZF_ROOT_PATH/tools/common/zfsh_recursive.sh" "$ZF_ROOT_PATH" "zfautoscript_zf3rd_setup*.zfsh"
sh "$ZF_ROOT_PATH/tools/common/zfsh_recursive.sh" "$ZF_ROOT_PATH/ZFModule" "zfautoscript_zf3rd_setup*.zfsh"
sh "$ZF_ROOT_PATH/tools/common/zfsh_recursive.sh" "$ZF_ROOT_PATH" "zfautoscript_zfmodule.zfsh"
sh "$ZF_ROOT_PATH/tools/common/zfsh_recursive.sh" "$ZF_ROOT_PATH/ZFModule" "zfautoscript_zfmodule.zfsh"
ABS_ZF_ROOT_PATH=$(cd -- "$ZF_ROOT_PATH" && pwd)
ABS_WORK_DIR=$(cd -- "$WORK_DIR" && pwd)
if ! test "$ABS_ZF_ROOT_PATH" = "$ABS_WORK_DIR" ; then
sh "$ZF_ROOT_PATH/tools/common/zfsh_recursive.sh" "$WORK_DIR" "zfautoscript_zf3rd_setup*.zfsh"
sh "$ZF_ROOT_PATH/tools/common/zfsh_recursive.sh" "$WORK_DIR" "zfautoscript_zfmodule.zfsh"
fi