forked from sstephenson/bats
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📝 add document attributes to manpages
Use the document attribute options of `ronn`.. ```console Document attributes: --date=<date> published date in YYYY-MM-DD format (bottom-center) --manual=<name> name of the manual (top-center) --organization=<name> publishing group or individual (bottom-left) ``` .. when generating the man pages. ```makefile ORG := bats-core MANUAL := 'Bash Automated Testing System' ISOFMT := $(shell date -I) $(RONN) --date=$(ISOFMT) --manual=$(MANUAL) --organization=$(ORG) --roff $< ```
- Loading branch information
1 parent
8789f91
commit d9d2b1d
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
RONN := ronn | ||
# Makefile | ||
# | ||
# bats-core manpages | ||
# | ||
RONN := ronn -W | ||
PAGES := bats.1 bats.7 | ||
ORG := bats-core | ||
MANUAL := 'Bash Automated Testing System' | ||
ISOFMT := $(shell date -I) | ||
RM := rm -f | ||
|
||
.PHONY: all clean | ||
|
||
all: $(PAGES) | ||
|
||
bats.1: bats.1.ronn | ||
$(RONN) -r $< | ||
$(RONN) --date=$(ISOFMT) --manual=$(MANUAL) --organization=$(ORG) --roff $< | ||
|
||
bats.7: bats.7.ronn | ||
$(RONN) -r $< | ||
$(RONN) --date=$(ISOFMT) --manual=$(MANUAL) --organization=$(ORG) --roff $< | ||
|
||
clean: | ||
$(RM) $(PAGES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters