modulemake.sh | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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