@@ -36,28 +36,41 @@ of which don't require much runtime to be around (except for basics like libc)
36
36
[ downloaded here] ( http://fraggod.net/static/code/codetag ) (x86 ELF32) (usual
37
37
warning about downloading binaries via http applies).
38
38
39
- To build the thing from source:
39
+ To build the thing from source using go packaging tools :
40
40
41
- * [ Install Go] ( http://www.golang.org/ ) .
41
+ * [ Install Go] ( http://www.golang.org/ ) .
42
42
43
- * Fetch the go package deps:
43
+ * Easy option: use
44
+ ["go install"](https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies)
45
+ to pull in all the deps and build the tool:
44
46
45
- go get -u github.com/vaughan0/go-logging
46
- go get -u github.com/kylelemons/go-gypsy/yaml
47
+ go install github.com/mk-fg/codetag
47
48
48
- Be sure to update these packages when trying to build a new codetag version.
49
+ This should produce no output and just exit with success.
50
+ Compiled binary will be in the "$GOROOT/bin" path.
49
51
50
- * Get the code: ` git clone https://github.com/mk-fg/codetag `
52
+ That's it, all done.
51
53
52
- * Build the code:
53
54
54
- cd codetag
55
- make
55
+ * Alternative to the above (aka the hard way): clone repo and build manually.
56
56
57
- TODO: move/symlink stuff around, so that " go install" would work
57
+ * Fetch go package deps:
58
58
59
- * Binary will be in the "bin/codetag" path, and can be installed via usual
60
- means e.g. `sudo install -m755 bin/codetag /usr/local/bin`.
59
+ go get -u github.com/vaughan0/go-logging
60
+ go get -u github.com/kylelemons/go-gypsy/yaml
61
+
62
+ Be sure to update these packages when trying to build a new codetag version.
63
+
64
+ * Get the code: `git clone https://github.com/mk-fg/codetag`
65
+
66
+ * Build the code:
67
+
68
+ cd codetag
69
+ make
70
+
71
+ * Binary will be in the "bin/codetag" path, and can be installed to $PATH (if
72
+ necessary) via usual means e.g. `sudo install -m755 bin/codetag
73
+ /usr/local/bin`.
61
74
62
75
63
76
Usage
0 commit comments