Browse Source

Add docs/ folder

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
559de5e140
Signed by untrusted user: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      Makefile
  2. 22
      build.rs
  3. 6
      debian/meli.docs
  4. 0
      docs/meli-themes.5
  5. 0
      docs/meli.1
  6. 0
      docs/meli.conf.5

2
Makefile

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

22
build.rs

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

6
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

0
meli-themes.5 → docs/meli-themes.5

0
meli.1 → docs/meli.1

0
meli.conf.5 → docs/meli.conf.5

Loading…
Cancel
Save