intimate/build.sh
2020-09-07 15:13:50 +08:00

23 lines
531 B
Bash

source_tasks=./tasks/*/*
extractor_tasks=./extractor/*
src=`pwd`
for path in `ls -d $source_tasks`
do
echo $path
projectname=${path##*/}
projectworkspace=$src/bin/$projectname
cd $path && mkdir $projectworkspace -p && go build -o $projectworkspace/$projectname
cd $src
done
for path in `ls -d $extractor_tasks`
do
echo $path
projectname=${path##*/}
projectworkspace=$src/bin/$projectname
cd $path && mkdir $projectworkspace -p && go build -o $projectworkspace/$projectname
cd $src
done