blob: 43b3c4f5a777ab19b38e7b83fd980a7708b49de2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
g="/home/{{ ansible_user }}/src/go"
t="/home/{{ ansible_user }}/trainings"
# The extra go install step ensures that go modules are used
# (they don't work for the go get stage in go 1.11)
export GOPATH="$g"
go get -u rescribe.xyz/bookpipeline/... && \
cd "$g/src/rescribe.xyz/bookpipeline" && \
GO111MODULE=on go get -u rescribe.xyz/bookpipeline/... && \
GO111MODULE=on go install ./... && \
sudo cp "$g/bin/bookpipeline" /usr/local/bin/ || exit 1
cd "$t" && git pull && \
sudo cp "$t"/* /usr/local/share/tesseract-ocr/tessdata/
|