Skip to content
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

Make Cargo build the manpage #94

Merged
merged 4 commits into from
Jun 1, 2017
Merged
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ addons:
packages:
- cmake
- cmake-data
- pandoc
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Matthias Beyer <mail@beyermatthias.de>",
"Julian Ganz <neither@nut.email>"]

build = "mkmanpage.rs"

[workspace]
members = [
"lib"
Expand Down
7 changes: 0 additions & 7 deletions Makefile

This file was deleted.

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ git-dit - the distributed issue tracker for git
When playing with this, please keep in mind that this is alpha quality - there
are bugs, missing things and rough edges.

# Dependencies

The following crates are used:
* chrono 0.3
* error-chain 0.10
* git2 0.6
* is-match 0.1
* log 0.3

Additionally, for building the man page, `pandoc` is required.


# Installing

_TBD_
Expand Down
13 changes: 13 additions & 0 deletions mkmanpage.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::process::Command;

fn main() {
assert!(Command::new("pandoc")
.arg("-s")
.arg("-t").arg("man")
.arg("git-dit.1.md")
.arg("-o").arg("git-dit.1")
.status()
.unwrap()
.success())
}