Browse Source

Add docs/ folder

tags/alpha-0.6.2
Manos Pitsidianakis 1 month ago
parent
commit
559de5e140
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 73627C2F690DF710
6 changed files with 20 additions and 10 deletions
  1. +1
    -1
      Makefile
  2. +16
    -6
      build.rs
  3. +3
    -3
      debian/meli.docs
  4. +0
    -0
      docs/meli-themes.5
  5. +0
    -0
      docs/meli.1
  6. +0
    -0
      docs/meli.conf.5

+ 1
- 1
Makefile View File

@ -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/^://'

+ 16
- 6
build.rs View File

@ -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();

+ 3
- 3
debian/meli.docs View File

@ -1,3 +1,3 @@
meli.1
meli.conf.5
meli-themes.5
docs/meli.1
docs/meli.conf.5
docs/meli-themes.5

meli-themes.5 → docs/meli-themes.5 View File


meli.1 → docs/meli.1 View File


meli.conf.5 → docs/meli.conf.5 View File


Loading…
Cancel
Save