File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ GOBUILD = go build -ldflags '-w'
55ALL = \
66 $(foreach arch,64 32,\
77 $(foreach suffix,linux osx win.exe,\
8- build/gr-$(arch ) -$(suffix ) ) )
8+ build/gr-$(arch ) -$(suffix ) ) ) \
9+ $(foreach arch,arm arm64,\
10+ build/go-crond-$(arch ) -linux)
911
1012all : test build
1113
@@ -30,7 +32,15 @@ build/gr-32-%: $(SOURCE)
3032 @mkdir -p $(@D )
3133 CGO_ENABLED=0 GOOS=$(firstword $($* ) $* ) GOARCH=386 $(GOBUILD ) -o $@
3234
33- release : $(ALL )
35+ build/go-crond-arm-linux : $(SOURCE )
36+ @mkdir -p $(@D )
37+ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 $(GOBUILD ) -o $@
38+
39+ build/go-crond-arm64-linux : $(SOURCE )
40+ @mkdir -p $(@D )
41+ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(GOBUILD ) -o $@
42+
43+ release : build
3444 github-release release -u webdevops -r go-replace -t " $( TAG) " -n " $( TAG) " --description " $( TAG) "
3545 @for x in $(ALL ) ; do \
3646 echo " Uploading $$ x" && \
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Inspired by https://github.com/piranha/goreplace
2121- Can store file as other filename (eg. ` go-replace ./configuration.tmpl:./configuration.conf ` )
2222- Can replace files in directory (` --path ` ) and offers file pattern matching functions (` --path-pattern ` and ` --path-regex ` )
2323- Can read also stdin for search&replace or template handling
24+ - Supports Linux, MacOS, Windows and ARM/ARM64 (Rasbperry Pi and others)
2425
2526## Usage
2627
You can’t perform that action at this time.
0 commit comments