Skip to content

Commit

Permalink
docs: update date in man file
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Aug 24, 2021
1 parent b1f492c commit 5b3a81b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MAJOR_VER := v5
PACKAGE := github.com/dundee/$(NAME)/$(MAJOR_VER)
CMD_GDU := cmd/gdu
VERSION := $(shell git describe --tags 2>/dev/null)
DATE := $(shell date +'%Y-%m-%d')
GOFLAGS ?= -buildmode=pie -trimpath -mod=readonly -modcacherw
LDFLAGS := -s -w -extldflags '-static' \
-X '$(PACKAGE)/build.Version=$(VERSION)' \
Expand Down Expand Up @@ -46,7 +47,9 @@ build-all:
cd dist; for file in gdu_windows_*; do zip $$file.zip $$file; done

gdu.1: gdu.1.md
pandoc gdu.1.md -s -t man > gdu.1
sed 's/{{date}}/$(DATE)/g' gdu.1.md > gdu.1.date.md
pandoc gdu.1.date.md -s -t man > gdu.1
rm -f gdu.1.date.md

man: gdu.1
cp gdu.1 dist
Expand Down
2 changes: 1 addition & 1 deletion gdu.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 2.14.0.2
.\"
.TH "gdu" "1" "Jan 2021" "" ""
.TH "gdu" "1" "2021-08-24" "" ""
.hy
.SH NAME
.PP
Expand Down
4 changes: 2 additions & 2 deletions gdu.1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
date: Jan 2021
date: {{date}}
section: 1
title: gdu
---
Expand Down Expand Up @@ -78,4 +78,4 @@ flag with following meaning:

**e**

: Directory is empty.
: Directory is empty.

0 comments on commit 5b3a81b

Please sign in to comment.