create_module.sh 367 字节
Newer Older
W
wuzewu 已提交
1 2 3 4 5
#!/bin/bash
set -o nounset
set -o errexit

script_path=$(cd `dirname $0`; pwd)
W
wuzewu 已提交
6
module_path=lac.hub_module
W
wuzewu 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

if [ -d $script_path/$module_path ]
then
    echo "$module_path already existed!"
    exit 0
fi

cd $script_path/resources/

if [ ! -d senta_model ]
then
    sh download.sh
fi

cd $script_path/
W
wuzewu 已提交
22 23

python create_module.py
W
wuzewu 已提交
24 25

echo "Successfully create $module_path"