helperbot/buildplugins.sh

12 lines
174 B
Bash
Raw Normal View History

2019-11-13 00:45:56 +00:00
#!/bin/bash
cd plugins_src
for i in `ls`; do
echo "Building plugin: $i"
go build -buildmode=plugin $i
if [ $? -eq 0 ]; then
mv *.so ../cmd/plugins
fi
done
cd ..