Pastebin

Check-in [b702abe83b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add -ldflags to reduce binary size
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b702abe83ba08ca88c3ec5e9e08e800df1240a7cbd99ae6c336bef41b0eb4657
User & Date: jef 2019-11-05 12:30:07
Context
2019-11-06
20:27
Simplify DB queries check-in: bbe49e890d user: jef tags: trunk
2019-11-05
12:30
Add -ldflags to reduce binary size check-in: b702abe83b user: jef tags: trunk
08:36
Turn Db struct fields private check-in: d52baeac41 user: jef tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Makefile.

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	# (section title is erased using a perl on liner)
	@mandoc -I os="" -T locale $(PROG).1 \
		| col -bx \
		| perl -pe 's/^(\S+\(\d\))(\s+.*\s+)\1$$/$$1 . " " x length($$2) . $$1/e' \
		> $(PROG).1.txt
	
pastebin: $(GOFILES)
	go build

install: $(PROG) $(PROG).1
	mkdir -p $(PREFIX)/bin
	cp -f $(PROG) $(PREFIX)/bin
	chmod 0755 $(PREFIX)/bin/$(PROG)
	mkdir -p $(MANPREFIX)/man1
	cp -f $(PROG).1 $(MANPREFIX)/man1







|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	# (section title is erased using a perl on liner)
	@mandoc -I os="" -T locale $(PROG).1 \
		| col -bx \
		| perl -pe 's/^(\S+\(\d\))(\s+.*\s+)\1$$/$$1 . " " x length($$2) . $$1/e' \
		> $(PROG).1.txt
	
pastebin: $(GOFILES)
	go build -ldflags="-s -w"

install: $(PROG) $(PROG).1
	mkdir -p $(PREFIX)/bin
	cp -f $(PROG) $(PREFIX)/bin
	chmod 0755 $(PREFIX)/bin/$(PROG)
	mkdir -p $(MANPREFIX)/man1
	cp -f $(PROG).1 $(MANPREFIX)/man1