]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm-remote/build.sh
Move embedded remote helpers to cmd/safcm/
[safcm/safcm.git] / cmd / safcm-remote / build.sh
index 404f48faa9ce621dba88341ecd548472fe8f9908..73957ed7562938b4a8376a364b962008311b0c4e 100755 (executable)
@@ -25,10 +25,17 @@ build() {
     GOOS="$1" GOARCH="$2" go build -o "$dest/$1-$2"
 }
 
+build_arm() {
+    GOOS="$1" GOARCH="$2" GOARM="$3" go build -o "$dest/$1-${2}v${3}l"
+}
+
 
-dest=../../remote/helpers
+dest=../safcm/remote
 
 mkdir -p "$dest"
 
+build freebsd amd64
 build linux amd64
+build openbsd amd64
+build_arm linux arm 7
 # TODO: support more operating systems and architectures