Skip to content

Commit

Permalink
release 0.9.64
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-spb committed Apr 21, 2023
1 parent a82be30 commit d9bf2cd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
56
64
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
include: VERSION

all:
./version.sh
go build -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" || exit

clean:
rm -- certsquirt

release: all
release:
./version.sh
./release.sh

realclean:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.56
0.9.64
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ func main() {
flag.BoolVar(&flShowVersion, "version", false, "Show version information, and quit.")
flag.Parse()
if flShowVersion {
log.Printf("VERSION: Running version %v built at %v. (githash: %v)", version, buildstamp, githash)
if buildstamp != "" && githash != "" {
log.Printf("VERSION: Running version %v built at %v. (githash: %v)", version, buildstamp, githash)
} else {
log.Printf("VERSION: Running release version %v", version)
}
os.Exit(0)
}
if flUsage {
Expand Down
10 changes: 10 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
export VERSION=`cat VERSION`
git archive --prefix=certsquirt-${VERSION}/ --format=tar.gz --output=certsquirt-${VERSION}.tar.gz main

# assume building on MacOS
go build -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-macos-arm
GOOS=windows GOARCH=amd64 go build -a -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-windows-amd64.exe
GOOS=linux GOARCH=amd64 go build -a -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-linux-amd64
GOOS=linux GOARCH=arm64 go build -a -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-linux-arm64
GOOS=freebsd GOARCH=amd64 go build -a -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-freebsd-amd64
GOOS=freebsd GOARCH=arm64 go build -a -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-freebsd-arm64
GOOS=openbsd GOARCH=amd64 go build -a -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-openbsd-amd64
GOOS=openbsd GOARCH=arm64 go build -a -v -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o certsquirt-${VERSION}-openbsd-arm64
3 changes: 1 addition & 2 deletions version.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
MINOR=`cat MINOR`
NEWMINOR=`expr ${MINOR} + 1`
VERSION=0.9.${NEWMINOR}
export VERSION=0.9.${NEWMINOR}
echo $VERSION > VERSION
echo $NEWMINOR > MINOR
export VERSION

0 comments on commit d9bf2cd

Please sign in to comment.