diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | build.rs | 22 | ||||
-rw-r--r-- | debian/meli.docs | 6 | ||||
-rw-r--r-- | docs/meli-themes.5 (renamed from meli-themes.5) | 0 | ||||
-rw-r--r-- | docs/meli.1 (renamed from meli.1) | 0 | ||||
-rw-r--r-- | docs/meli.conf.5 (renamed from meli.conf.5) | 0 |
6 files changed, 20 insertions, 10 deletions
@@ -28,7 +28,7 @@ MIN_RUSTC ?= 1.39.0 CARGO_BIN ?= cargo # Installation parameters -MANPAGES ?= meli.1 meli.conf.5 meli-themes.5 +MANPAGES ?= docs/meli.1 docs/meli.conf.5 docs/meli-themes.5 FEATURES ?= --features "${MELI_FEATURES}" MANPATHS != ACCUM="";for m in `manpath 2> /dev/null | tr ':' ' '`; do if [ -d "$${m}" ]; then REAL_PATH=`cd $${m} && pwd` ACCUM="$${ACCUM}:$${REAL_PATH}";fi;done;echo -n $${ACCUM} | sed 's/^://' @@ -49,9 +49,9 @@ fn main() { let output = Command::new("mandoc") .args(MANDOC_OPTS) - .arg("meli.1") + .arg("docs/meli.1") .output() - .or_else(|_| Command::new("man").arg("-l").arg("meli.1").output()) + .or_else(|_| Command::new("man").arg("-l").arg("docs/meli.1").output()) .unwrap(); let mut file = File::create(&out_dir_path).unwrap(); @@ -61,9 +61,14 @@ fn main() { out_dir_path.push("meli.conf.txt"); let output = Command::new("mandoc") .args(MANDOC_OPTS) - .arg("meli.conf.5") + .arg("docs/meli.conf.5") .output() - .or_else(|_| Command::new("man").arg("-l").arg("meli.conf.5").output()) + .or_else(|_| { + Command::new("man") + .arg("-l") + .arg("docs/meli.conf.5") + .output() + }) .unwrap(); let mut file = File::create(&out_dir_path).unwrap(); file.write_all(&output.stdout).unwrap(); @@ -72,9 +77,14 @@ fn main() { out_dir_path.push("meli-themes.txt"); let output = Command::new("mandoc") .args(MANDOC_OPTS) - .arg("meli-themes.5") + .arg("docs/meli-themes.5") .output() - .or_else(|_| Command::new("man").arg("-l").arg("meli-themes.5").output()) + .or_else(|_| { + Command::new("man") + .arg("-l") + .arg("docs/meli-themes.5") + .output() + }) .unwrap(); let mut file = File::create(&out_dir_path).unwrap(); file.write_all(&output.stdout).unwrap(); diff --git a/debian/meli.docs b/debian/meli.docs index f61d6a3c..152d2a7c 100644 --- a/debian/meli.docs +++ b/debian/meli.docs @@ -1,3 +1,3 @@ -meli.1 -meli.conf.5 -meli-themes.5 +docs/meli.1 +docs/meli.conf.5 +docs/meli-themes.5 diff --git a/meli-themes.5 b/docs/meli-themes.5 index 7545d0b4..7545d0b4 100644 --- a/meli-themes.5 +++ b/docs/meli-themes.5 diff --git a/meli.conf.5 b/docs/meli.conf.5 index a183251e..a183251e 100644 --- a/meli.conf.5 +++ b/docs/meli.conf.5 |