diff options
| author | Jeff Carr <[email protected]> | 2024-11-24 06:19:40 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-24 06:19:40 -0600 | 
| commit | b1cdb841bc7240fc9aa929ad15a09f0ae618777b (patch) | |
| tree | 48a80a62ab2afa0c96e48043ee62ae7be9ea5d28 | |
| parent | c8bbe3c2983ab30ad568ba10fa8778493311bd73 (diff) | |
more example ideasv0.22.18
| -rwxr-xr-x | examples/gocomplete/build | 4 | ||||
| -rw-r--r-- | examples/gocomplete/control | 2 | ||||
| -rw-r--r-- | examples/goimports/Makefile | 13 | ||||
| -rwxr-xr-x | examples/goimports/build | 5 | ||||
| -rw-r--r-- | examples/goimports/control | 13 | ||||
| -rw-r--r-- | examples/x-tools/Makefile | 13 | ||||
| -rwxr-xr-x | examples/x-tools/build | 37 | ||||
| -rw-r--r-- | examples/x-tools/control | 14 | 
8 files changed, 99 insertions, 2 deletions
diff --git a/examples/gocomplete/build b/examples/gocomplete/build index bbc0ed8..2205244 100755 --- a/examples/gocomplete/build +++ b/examples/gocomplete/build @@ -1,6 +1,8 @@  #!/bin/bash -x +# cmd github.com/posener/complete/gocomplete +  # this is the awesome gocomplete from github.com/posener/complete  mkdir -p  files/usr/bin -cp ~/go/bin/gocomplete files/usr/bin +cp ~/go/src/github.com/posener/complete/gocomplete/gocomplete files/usr/bin/ diff --git a/examples/gocomplete/control b/examples/gocomplete/control index 5424d50..782faf4 100644 --- a/examples/gocomplete/control +++ b/examples/gocomplete/control @@ -7,6 +7,6 @@ Architecture: amd64  Depends:  GoPath: github.com/posener/complete  Recommends: golang -Version: 0.0.1 +Version: 0.0.2  Description: gocomplete from posener   This was packaged with go-deb from go.wit.com diff --git a/examples/goimports/Makefile b/examples/goimports/Makefile new file mode 100644 index 0000000..ecaad6a --- /dev/null +++ b/examples/goimports/Makefile @@ -0,0 +1,13 @@ +.PHONY: build + +# this is how the mirrors.wit.com debian package is created + +all: build + +build: +	go-deb --repo . + +# use the ncurses gui (only kinda works still) +ncurses: +	go-deb --gui gocui --repo . + diff --git a/examples/goimports/build b/examples/goimports/build new file mode 100755 index 0000000..c879b7f --- /dev/null +++ b/examples/goimports/build @@ -0,0 +1,5 @@ +#!/bin/bash -x + +# do nothing. this package is just an 'alias' +# since I never remember where goimport is +# (it's in golang-golang-x-tools) diff --git a/examples/goimports/control b/examples/goimports/control new file mode 100644 index 0000000..7c5148b --- /dev/null +++ b/examples/goimports/control @@ -0,0 +1,13 @@ +Source: +Package: goimports +Build-Depends: +Maintainer: Jeff Carr <[email protected]> +Packager: Jeff Carr <[email protected]> +Architecture: amd64 +Depends: golang-golang-x-tools +GoPath: golang.org/x/tools +Recommends: golang +Version: 0.0.1 +Description: apt install's golang.org/x/tools + This doesn't do anything. it's just a shortcut. + This was packaged with go-deb from go.wit.com diff --git a/examples/x-tools/Makefile b/examples/x-tools/Makefile new file mode 100644 index 0000000..578b75c --- /dev/null +++ b/examples/x-tools/Makefile @@ -0,0 +1,13 @@ +.PHONY: build + +# this is how the mirrors.wit.com debian package is created + +all: build + +build: +	cp build control ~/go/src/golang.org/x/tools/ +	go-deb --auto --repo golang.org/x/tools + +# use the ncurses gui (only kinda works still) +ncurses: +	# go-deb --gui gocui --repo . diff --git a/examples/x-tools/build b/examples/x-tools/build new file mode 100755 index 0000000..f35067a --- /dev/null +++ b/examples/x-tools/build @@ -0,0 +1,37 @@ +#!/bin/bash -x + +# bin /usr/bin +# cmd golang.org/x/tools/cmd/benchcmp +# cmd golang.org/x/tools/cmd/godoc +# cmd golang.org/x/tools/cmd/goimports +# +# bin /usr/lib/golang.org/x/tools/ +# cmd golang.org/x/tools/cmd/auth golang-authtest +# cmd golang.org/x/tools/cmd/bisect golang-bisect +# cmd golang.org/x/tools/cmd/bundle golang-bundle +# cmd golang.org/x/tools/cmd/callgraph +# cmd golang.org/x/tools/cmd/compilebench +# cmd golang.org/x/tools/cmd/deadcode +# cmd golang.org/x/tools/cmd/digraph +# cmd golang.org/x/tools/cmd/eg +# cmd golang.org/x/tools/cmd/file2fuzz +# cmd golang.org/x/tools/cmd/fiximports +# cmd golang.org/x/tools/cmd/go-contrib-init +# cmd golang.org/x/tools/cmd/godex +# cmd golang.org/x/tools/cmd/gomvpkg +# cmd golang.org/x/tools/cmd/gonew +# cmd golang.org/x/tools/cmd/gotype +# cmd golang.org/x/tools/cmd/goyacc +# cmd golang.org/x/tools/cmd/html2article +# cmd golang.org/x/tools/cmd/present +# cmd golang.org/x/tools/cmd/present2md +# cmd golang.org/x/tools/cmd/signature-fuzzer +# cmd golang.org/x/tools/cmd/splitdwarf +# cmd golang.org/x/tools/cmd/ssadump +# cmd golang.org/x/tools/cmd/stress +# cmd golang.org/x/tools/cmd/stringer +# cmd golang.org/x/tools/cmd/toolstash + +# doc man1 benchcmp.1.gz + +# normal bash stuff below still will run diff --git a/examples/x-tools/control b/examples/x-tools/control new file mode 100644 index 0000000..0900e3e --- /dev/null +++ b/examples/x-tools/control @@ -0,0 +1,14 @@ +Source: +Package: golang.org-x-tools +Build-Depends: +Maintainer: https://golang.org/issue/ +Packager: Jeff Carr <[email protected]> +Architecture: amd64 +Depends: +GoPath: golang.org/x/tools +Recommends: golang +BuildIgnore: +Description: GO lang x/tools + Just an example of how it could be packaged using go-deb + incase that is of any use or not. + This was packaged with go-deb from go.wit.com  | 
