223d755b1ce1

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 02 May 2019 10:10:34 -0400
parents 184f105ab156 (current diff) 780d6c03adaf (diff)
children 0ababcc7c2a6
branches/tags (none)
files go/encconv.go

Changes

--- a/bin/makerlisp-raw	Thu May 02 10:09:43 2019 -0400
+++ b/bin/makerlisp-raw	Thu May 02 10:10:34 2019 -0400
@@ -4,4 +4,4 @@
 
 cd ~/src/makerlisp/src/uSDimage
 ../lisp/linux/lisp "$@"
-# | ~/src/dotfiles/go/bin/encconv
+# | ~/src/dotfiles/go/bin/cp437-to-utf8
--- a/fish/config.fish	Thu May 02 10:09:43 2019 -0400
+++ b/fish/config.fish	Thu May 02 10:10:34 2019 -0400
@@ -117,6 +117,11 @@
 set PYTHONPATH "$HOME/lib/hg/hg:$PYTHONPATH"
 
 # }}}
+# Go {{{
+
+set -g -x GOPATH "$HOME/.go"
+
+# }}}
 # Z {{{
 
 . ~/src/z-fish/z.fish
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/go/Makefile	Thu May 02 10:10:34 2019 -0400
@@ -0,0 +1,16 @@
+files := $(shell ls *.go)
+names := $(files:.go=)
+
+.PHONY: all clean $(names)
+
+all: $(names)
+
+$(names): %: bin/%
+
+bin/%: %.go
+	mkdir -p bin
+	go build $<
+	mv $(@F) bin/
+
+clean:
+	rm -rf bin
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/go/cp437-to-utf8.go	Thu May 02 10:10:34 2019 -0400
@@ -0,0 +1,14 @@
+package main
+
+import (
+	"io"
+	"os"
+
+	"golang.org/x/text/encoding/charmap"
+	"golang.org/x/text/transform"
+)
+
+func main() {
+	r := transform.NewReader(os.Stdin, charmap.CodePage437.NewDecoder())
+	io.Copy(os.Stdout, r)
+}
--- a/go/encconv.go	Thu May 02 10:09:43 2019 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-package main
-
-import (
-	"io"
-	"os"
-
-	"golang.org/x/text/encoding/charmap"
-	"golang.org/x/text/transform"
-)
-
-func main() {
-	r := transform.NewReader(os.Stdin, charmap.CodePage437.NewDecoder())
-	io.Copy(os.Stdout, r)
-}