File: set-build-artifacts-dir.patch

package info (click to toggle)
rust-procs 0.14.10-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 980 kB
  • sloc: makefile: 53
file content (18 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/build.rs
+++ b/build.rs
@@ -1,13 +1,12 @@
 include!("src/opt.rs");
 
 fn main() {
-    if let Ok(path) = std::env::var("COMPLETION_PATH") {
-        let out_dir = PathBuf::from(path);
+        let out_dir = PathBuf::from("debian/build_artifacts");
+        if std::fs::create_dir_all(&out_dir).is_err() { return; }
 
         gen_completion(Shell::Bash, &out_dir).unwrap();
         gen_completion(Shell::Elvish, &out_dir).unwrap();
         gen_completion(Shell::Fish, &out_dir).unwrap();
         gen_completion(Shell::PowerShell, &out_dir).unwrap();
         gen_completion(Shell::Zsh, &out_dir).unwrap();
-    }
 }