zhangmeng
2019-12-12 a9b37ead693089a917c92c99dfc933889674a3b4
modulemake.sh
@@ -1,5 +1,11 @@
#!/bin/sh
target="all"
if [ $# != 0 -a "$1" != "all" ]; then
    target=$1
fi
cur_dir=`pwd`
src=$cur_dir"/libgowrapper"
@@ -9,8 +15,6 @@
if [ ! -d $runtime_dir ];then
    mkdir $runtime_dir 
    echo "~~~CREATE RUNTIME LIBRARY DIRECTORY"  
else
    rm -fr $runtime_dir/*
fi
cd $src
@@ -19,6 +23,10 @@
    if [ ! -d $src"/"$value ];then
        continue
    fi
    if [ "$target" != "all" -a "$target" != "$value" ]; then
        continue
    fi
# build so file
    cd $src"/"$value
    go build -buildmode=plugin -o lib$value.so -a