Skip to content

Commit 818e0ac

Browse files
refactor to simplify code
1 parent e3646f3 commit 818e0ac

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

hts-sys/build.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,31 @@ fn main() {
8989
{
9090
panic!("failed to build htslib");
9191
}
92-
// println!("autoheader");
93-
if Command::new("autoconf")
92+
if !Command::new("autoconf")
9493
.current_dir(out.join("htslib"))
9594
.status()
9695
.unwrap()
9796
.success()
98-
!= true
9997
{
10098
panic!("failed to build htslib");
10199
}
102-
// println!("autoconf");
103-
if Command::new("sh")
100+
if !Command::new("sh")
104101
.current_dir(out.join("htslib"))
105102
.arg("./configure")
106-
.arg(format!("CC=clang"))
103+
.arg(format!("CC=clang".to_string()))
107104
.status()
108105
.unwrap()
109106
.success()
110-
!= true
111107
{
112108
panic!("failed to build htslib");
113109
}
114-
// println!("sh ./configure");
115-
// println!("{}", format!("--prefix={}/local", home_dir().unwrap().into_os_string().into_string().unwrap()));
116-
if Command::new("sh")
110+
if !Command::new("sh")
117111
.current_dir(out.join("htslib"))
118112
.arg("./configure")
119113
.arg(format!("--prefix={}/local", home_dir().unwrap().into_os_string().into_string().unwrap()))
120114
.status()
121115
.unwrap()
122116
.success()
123-
!= true
124117
{
125118
panic!("failed to build htslib");
126119
}

0 commit comments

Comments
 (0)