more example ideas

This commit is contained in:
Jeff Carr 2024-11-24 06:19:40 -06:00
parent c8bbe3c298
commit b1cdb841bc
8 changed files with 99 additions and 2 deletions

View File

@ -1,6 +1,8 @@
#!/bin/bash -x #!/bin/bash -x
# cmd github.com/posener/complete/gocomplete
# this is the awesome gocomplete from github.com/posener/complete # this is the awesome gocomplete from github.com/posener/complete
mkdir -p files/usr/bin mkdir -p files/usr/bin
cp ~/go/bin/gocomplete files/usr/bin cp ~/go/src/github.com/posener/complete/gocomplete/gocomplete files/usr/bin/

View File

@ -7,6 +7,6 @@ Architecture: amd64
Depends: Depends:
GoPath: github.com/posener/complete GoPath: github.com/posener/complete
Recommends: golang Recommends: golang
Version: 0.0.1 Version: 0.0.2
Description: gocomplete from posener Description: gocomplete from posener
This was packaged with go-deb from go.wit.com This was packaged with go-deb from go.wit.com

View File

@ -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 .

5
examples/goimports/build Executable file
View File

@ -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)

View File

@ -0,0 +1,13 @@
Source:
Package: goimports
Build-Depends:
Maintainer: Jeff Carr <jcarr@wit.com>
Packager: Jeff Carr <jcarr@wit.com>
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

13
examples/x-tools/Makefile Normal file
View File

@ -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 .

37
examples/x-tools/build Executable file
View File

@ -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

14
examples/x-tools/control Normal file
View File

@ -0,0 +1,14 @@
Source:
Package: golang.org-x-tools
Build-Depends:
Maintainer: https://golang.org/issue/
Packager: Jeff Carr <jcarr@wit.com>
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