Skip to content

Remove generated manpage #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ PREFIX ?= /usr/local
all: man

mgitstatus.1: mgitstatus.1.md
pandoc ./$< -s -t man > $@
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why my vim does that.

pandoc ./$< -s -t man > $@

.PHONY: man
man: mgitstatus.1

.PHONY: test
test:
# SC1117 Backslash is literal in...
# SC2059 Don't use variables in the printf format string. But we need to or colors won't work
shellcheck -e SC1117,SC2059 mgitstatus
# SC1117 Backslash is literal in...
# SC2059 Don't use variables in the printf format string. But we need to or colors won't work
shellcheck -e SC1117,SC2059 mgitstatus

.PHONY: install
install:
install -d $(DESTDIR)$(PREFIX)/bin
install -d $(DESTDIR)$(PREFIX)/man/man1
install mgitstatus -m 755 $(DESTDIR)$(PREFIX)/bin/
install mgitstatus.1 $(DESTDIR)$(PREFIX)/man/man1/
install -d $(DESTDIR)$(PREFIX)/bin
install -d $(DESTDIR)$(PREFIX)/man/man1
install mgitstatus -m 755 $(DESTDIR)$(PREFIX)/bin/
install mgitstatus.1 $(DESTDIR)$(PREFIX)/man/man1/

.PHONY: clean
clean:
rm -f mgitstatus.1
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,17 @@ For more examples, see the [manual page](mgitstatus.1.md).

# Installation

mgitstatus requires make.
mgitstatus requires make and pandoc.

The following steps will install mgitstatus:

# Clone the repo
$ git clone https://github.com/fboender/multi-git-status.git
$ cd multi-git-status

# Build manpage
$ make

# Install globally (all users)
$ sudo make install

Expand Down
192 changes: 0 additions & 192 deletions mgitstatus.1

This file was deleted.