|
|
|
@ -22,12 +22,12 @@
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
|
extern crate quote;
|
|
|
|
|
extern crate syn;
|
|
|
|
|
mod config_macros;
|
|
|
|
|
include!("config_macros.rs");
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
|
|
|
println!("cargo:rerun-if-changed=src/conf/.rebuild.overrides.rs");
|
|
|
|
|
config_macros::override_derive(&[
|
|
|
|
|
override_derive(&[
|
|
|
|
|
("src/conf/pager.rs", "PagerSettings"),
|
|
|
|
|
("src/conf/listing.rs", "ListingSettings"),
|
|
|
|
|
("src/conf/notifications.rs", "NotificationsSettings"),
|
|
|
|
@ -40,7 +40,7 @@ fn main() {
|
|
|
|
|
{
|
|
|
|
|
use flate2::{Compression, GzBuilder};
|
|
|
|
|
const MANDOC_OPTS: &[&str] = &["-T", "utf8", "-I", "os=Generated by mandoc(1)"];
|
|
|
|
|
use std::{env, fs::File, io::prelude::*, path::Path, process::Command};
|
|
|
|
|
use std::{env, io::prelude::*, path::Path};
|
|
|
|
|
|
|
|
|
|
let out_dir = env::var("OUT_DIR").unwrap();
|
|
|
|
|
let mut out_dir_path = Path::new(&out_dir).to_path_buf();
|
|
|
|
|