summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs35
1 files changed, 19 insertions, 16 deletions
diff --git a/build.rs b/build.rs
index 6134a9c..a69d83a 100644
--- a/build.rs
+++ b/build.rs
@@ -3,7 +3,7 @@ extern crate rustc_version;
use rustc_version::{version_meta, Channel};
-use std::process::Command;
+// use std::process::Command;
fn main() -> Result<(),()> {
@@ -21,21 +21,24 @@ fn main() -> Result<(),()> {
return Err(());
}
- // rename so we can just extract this into config dir later
- Command::new("cp")
- .args("-a extra hunter".split(" "))
- .status()
- .expect("Can't create copy of extra directory");
-
- // create archive that will be included in hunter binary
- Command::new("tar")
- .args("cfz config.tar.gz hunter".split(" "))
- .status()
- .expect("Failed to create archive of defualt config!");
-
- // delete directory we just compressed
- std::fs::remove_dir_all("hunter")
- .expect("Couldn't delete temporary config directory \"hunter\"");
+ // crates.io doesn't allow question marks in file names
+ // So we just stuff that in an archive for distribution
+
+ // // rename so we can just extract this into config dir later
+ // Command::new("cp")
+ // .args("-a extra hunter".split(" "))
+ // .status()
+ // .expect("Can't create copy of extra directory");
+
+ // // create archive that will be included in hunter binary
+ // Command::new("tar")
+ // .args("cfz config.tar.gz hunter".split(" "))
+ // .status()
+ // .expect("Failed to create archive of defualt config!");
+
+ // // delete directory we just compressed
+ // std::fs::remove_dir_all("hunter")
+ // .expect("Couldn't delete temporary config directory \"hunter\"");
return Ok(());
}