From a9b37ead693089a917c92c99dfc933889674a3b4 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期四, 12 十二月 2019 09:10:53 +0800 Subject: [PATCH] udpate --- modulemake.sh | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/modulemake.sh b/modulemake.sh index 714ac50..58e0470 100755 --- a/modulemake.sh +++ b/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 -- Gitblit v1.8.0