M .gitignore => .gitignore +2 -0
@@ 1,1 1,3 @@
digestion
+go.sum
+
M Makefile => Makefile +10 -3
@@ 1,13 1,20 @@
SHARE_DIR?=/usr/local/share
INSTALL_DIR?=$(SHARE_DIR)/mail-filters
+GO_FILES=$(shell find -name '*.go')
+.PHONY: clean
clean:
- rm -rf digestion
+ rm -rf digestion go.sum
-build:
+digestion: $(GO_FILES)
+ go get -u
go build
-install: build
+.PHONY: build
+build: digestion
+
+.PHONY: install
+install: digestion
mkdir -m755 -p $(INSTALL_DIR)
install -m755 digestion $(INSTALL_DIR)/digestion
M go.mod => go.mod +3 -3
@@ 1,5 1,5 @@
-module git.dominic-ricottone.com/digestion
+module git.dominic-ricottone.com/~dricottone/digestion
-go 1.18
+go 1.19
-require git.dominic-ricottone.com/textwrap v0.0.2
+require git.dominic-ricottone.com/~dricottone/textwrap v0.0.3
D go.sum => go.sum +0 -2
@@ 1,2 0,0 @@
-git.dominic-ricottone.com/textwrap v0.0.2 h1:BoCxezIxM2i/Mvs8gREB4XSLmQh+5DHmiEW/jiwdUbA=
-git.dominic-ricottone.com/textwrap v0.0.2/go.mod h1:oMsi+AbzUET9rjr9bDbtRUhD+bUPNjWMCIEhsLK80ZA=
M main.go => main.go +1 -1
@@ 9,7 9,7 @@ import (
"regexp"
"flag"
- "git.dominic-ricottone.com/digestion/message"
+ "git.dominic-ricottone.com/~dricottone/digestion/message"
)
const LINE_LENGTH = 80
M message/format.go => message/format.go +2 -2
@@ 4,9 4,9 @@ import (
"fmt"
"strings"
- textwrap "git.dominic-ricottone.com/textwrap/common"
+ textwrap "git.dominic-ricottone.com/~dricottone/textwrap/common"
- "git.dominic-ricottone.com/digestion/decoder"
+ "git.dominic-ricottone.com/~dricottone/digestion/decoder"
)
func (m *Message) determine_best_part() int {
M message/part.go => message/part.go +2 -2
@@ 1,8 1,8 @@
package message
import (
- "git.dominic-ricottone.com/digestion/decoder"
- "git.dominic-ricottone.com/digestion/renderer"
+ "git.dominic-ricottone.com/~dricottone/digestion/decoder"
+ "git.dominic-ricottone.com/~dricottone/digestion/renderer"
)
type MessagePart struct {