# Makefile for p4survey
BINARY=p4survey
VERSION=0.8
LDFLAGS=-ldflags "-w -s -X main.Version=${VERSION}"
SRC_FILES=${BINARY}.go
all: build README.html
# Builds the project
build:
go build ${LDFLAGS}
# Builds distribution
dist:
GOOS=darwin GOARCH=arm64 go build ${LDFLAGS} -o bin/${BINARY}.darwin-arm64 ${SRC_FILES}
GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o bin/${BINARY}.darwin-amd64 ${SRC_FILES}
GOOS=linux GOARCH=arm64 go build ${LDFLAGS} -o bin/${BINARY}.linux-arm64 ${SRC_FILES}
GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o bin/${BINARY}.linux-amd64 ${SRC_FILES}
GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o bin/${BINARY}.windows-amd64.exe ${SRC_FILES}
rm -f bin/${BINARY}*arm64*.gz bin/${BINARY}*amd64*.gz
-chmod +x bin/${BINARY}*arm64* bin/${BINARY}*amd64*
gzip bin/${BINARY}*arm64* bin/${BINARY}.darwin-amd64* bin/${BINARY}.linux-amd64*
# Renders the README as a standalone HTML page
README.html: README.md README.style.html
-p4 edit $@
pandoc --standalone --toc --metadata title="p4survey" --include-in-header=README.style.html -o $@ README.md
html: README.html
# Cleans our project: deletes binaries
clean:
if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi
.PHONY: all clean install html
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #12 | 34021 | Robert Cowham | Improve instructions for customers - update to 0.8 | ||
| #11 | 33961 | Robert Cowham | Simplify user page | ||
| #10 | 33926 | Robert Cowham | Moved seedreplica to another project | ||
| #9 | 33924 | Robert Cowham |
Improve Windows survey compatibility and collect LDAP configuration - Replace the Windows OS-version pipeline with `cmd.exe /d /c ver`, avoiding unsupported shell-pipe parsing. - Add `p4 ldaps` to the survey command set. - Add regression coverage for the Windows command and LDAP inclusion. |
||
| #8 | 33922 | Robert Cowham | Fix windows p4 set parsing issue | ||
| #7 | 33919 | Robert Cowham |
Enhance p4survey reporting and add controlled replica archive seeding - Bump p4survey to version 0.4. - Extend local-server survey reports with configured P4LOG and P4JOURNAL file sizes, and increase retained journal history to eight entries. - On Linux SDP hosts, include a time-ordered listing of server log files and retain SDP checkpoint and verification summaries. - Add tests for configuration-path parsing, configured file-size reporting, and SDP log listing. |
||
| #6 | 33912 | Robert Cowham | First version of seedreplica | ||
| #5 | 33854 | Robert Cowham | Fix version | ||
| #4 | 33850 | Robert Cowham | Improve HTML formatting | ||
| #3 | 33249 | Robert Cowham | Option to specify SVG file to save | ||
| #2 | 33206 | Robert Cowham |
Don't gzip Windows binaries. Handle partitioned tables. |
||
| #1 | 32951 | Robert Cowham | New p4survey tool |