diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8daf8e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dlbot diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1039002 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +.PHONY: dlbot +dlbot: + CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' . + +upload: dlbot + ssh -p993 root@nulo.in sv stop dlbot + scp -P993 dlbot dlbot@nulo.in:/home/dlbot/bin/ + ssh -p993 root@nulo.in sv start dlbot