aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-04 18:07:11 -0500
committerJesse Luehrs <doy@tozt.net>2018-03-04 18:07:11 -0500
commitf8e0c4c13339a1149efb987746e218b2f680b6e9 (patch)
tree61873fe22ec4b6e950975a7454b746a03b625672
parentb3b0bf89bae1117c5fb5fcecbaef4a1ef0c1bab4 (diff)
downloadfancy-prompt-f8e0c4c13339a1149efb987746e218b2f680b6e9.tar.gz
fancy-prompt-f8e0c4c13339a1149efb987746e218b2f680b6e9.zip
stop trying to be clever with the version stuff
it doesn't work right and i don't actually care that much
-rw-r--r--build.rs29
-rw-r--r--src/main.rs1
2 files changed, 0 insertions, 30 deletions
diff --git a/build.rs b/build.rs
deleted file mode 100644
index ee9d9e3..0000000
--- a/build.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-fn main() {
- println!("cargo:rustc-env=FANCY_PROMPT_BUILD_GIT_REV={}", git_describe())
-}
-
-fn git_describe() -> String {
- let output = std::process::Command::new("git")
- .args(&["describe", "--tags"])
- .output();
- output.and_then(|output| {
- if output.status.success() {
- Ok(
- String::from_utf8_lossy(&output.stdout)
- .trim()
- .to_string()
- )
- }
- else {
- Err(
- std::io::Error::new(
- std::io::ErrorKind::Other,
- "failed to run git"
- )
- )
- }
- }).unwrap_or_else(|_err| {
- // String::from(format!("{}", _err))
- String::from("???")
- })
-}
diff --git a/src/main.rs b/src/main.rs
index 3e5f849..63f73ed 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,7 +25,6 @@ fn collect_data() -> prompt::PromptData {
.about("Prints a fancy prompt")
.author(crate_authors!())
.version(crate_version!())
- .long_version(option_env!("FANCY_PROMPT_BUILD_GIT_REV").unwrap())
.arg(clap::Arg::with_name("prompt-escape")
.long("prompt-escape")
.value_name("SHELL")