Skip to content

Commit

Permalink
Merge pull request #2 from tongson/release/0.0.6
Browse files Browse the repository at this point in the history
Release/0.0.6
  • Loading branch information
tongson authored Mar 25, 2021
2 parents 0097416 + 180a468 commit 97c5864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.SILENT:
.SHELL := /usr/bin/env bash
.PHONY: staticcheck errcheck fmt build test clean
SRC= "cmd/rr/... pkg/aux/..."
SRC= "cmd/rr/... internal/lib/..."
BOLD=$(shell tput bold)
RED=$(shell tput setaf 1)
GREEN=$(shell tput setaf 2)
Expand All @@ -15,8 +15,6 @@ TIME=$(shell date "+%Y-%m-%d %H:%M:%S")
all: build test

setup:
mkdir -p bin
test -x /usr/bin/upx || zypper --non-interactive install --no-recommends install upx
cd tools
GO111MODULE=on go build -o ../bin/golint golang.org/x/lint/golint
GO111MODULE=on go build -o ../bin/staticcheck honnef.co/go/tools/cmd/staticcheck
Expand All @@ -25,7 +23,7 @@ setup:
fmt:
@echo "$(BLUE)$(TIME)$(GREEN) + go fmt $(RESET)"
@go fmt cmd/rr/main.go
@go fmt pkg/aux/aux.go
@go fmt internal/lib/lib.go

errcheck:
@echo "$(BLUE)$(TIME)$(GREEN) + errcheck $(RESET)"
Expand All @@ -50,11 +48,6 @@ build: fmt
@/usr/bin/env GOOS=linux CGO_ENABLED=0 go build -trimpath -o bin/rr -ldflags '-s -w -extldflags "-static"' ./cmd/rr
@echo "$(BLUE)$(TIME)$(CYAN) ! BUILD DONE $(RESET)"

release: build
@echo "$(BLUE)$(TIME)$(GREEN) + COMPRESS START$(RESET)"
@upx --brute bin/rr
@echo "$(BLUE)$(TIME)$(CYAN) ! COMPRESS DONE $(RESET)"

test:
@echo "$(BLUE)$(TIME)$(YELLOW) + TEST START $(RESET)"
cd .test
Expand Down
4 changes: 2 additions & 2 deletions cmd/rr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"lib"
)

const versionNumber = "v0.0.4"
const codeName = "\"Caustic Deacon\""
const versionNumber = "0.0.6"
const codeName = "\"Spooky Eagle\""
const (
libHeader = `#!/bin/sh
unset IFS
Expand Down

0 comments on commit 97c5864

Please sign in to comment.