fn touch_source<'a, T>(&self, trace_points: T) -> Result<()>
    where
        T: IntoIterator<Item = &'a String>
    {
        let kernel_path = self.source_path.clone().join("kernel/src");
        let capsules_path = self.source_path.clone().join("capsules/src");
        for trace_point_name in trace_points {
            // Find file with the trace point.
            let grep_output = Command::new("/usr/bin/grep")
                .args(&["-l",
                        "-r",
                        &trace_point_name,
                        kernel_path.to_str().unwrap(),
                        capsules_path.to_str().unwrap()])
                .output()
                .map(|output| String::from_utf8(output.stdout).unwrap().trim().to_string())?;

            for path in grep_output.lines() {
                println!("Touching '{}'.", path);
                Command::new("/usr/bin/touch")
                    .args(&[path])
                    .output()?;
            }
        }

        Ok(())
    }
/// Touch files containing the listed trace points to get `make` to rebuild them.
Touch files containing the listed trace points to get `make` to rebuild them.
Touch files containing the listed trace points to get ` make ` to rebuild them .
fn touch_source<'a, T>(&self, trace_points: T) -> Result<()>
    where
        T: IntoIterator<Item = &'a String>
    {
        let kernel_path = self.source_path.clone().join("kernel/src");
        let capsules_path = self.source_path.clone().join("capsules/src");
        for trace_point_name in trace_points {
            // Find file with the trace point.
            let grep_output = Command::new("/usr/bin/grep")
                .args(&["-l",
                        "-r",
                        &trace_point_name,
                        kernel_path.to_str().unwrap(),
                        capsules_path.to_str().unwrap()])
                .output()
                .map(|output| String::from_utf8(output.stdout).unwrap().trim().to_string())?;
            for path in grep_output.lines() {
                println!("Touching '{}'.", path);
                Command::new("/usr/bin/touch")
                    .args(&[path])
                    .output()?;
            }
        }
        Ok(())
    }
fn touch_source < ' a , T > ( & self , trace_points : T ) -> Result < ( ) > where T : IntoIterator < Item = & ' a String > { let kernel_path = self . source_path . clone ( ) . join ( " " ) ; let capsules_path = self . source_path . clone ( ) . join ( " " ) ; for trace_point_name in trace_points { // Find file with the trace point. let grep_output = Command :: new ( " " ) . args ( & [ " " , " " , & trace_point_name , kernel_path . to_str ( ) . unwrap ( ) , capsules_path . to_str ( ) . unwrap ( ) ] ) . output ( ) . map ( | output | String :: from_utf8 ( output . stdout ) . unwrap ( ) . trim ( ) . to_string ( ) ) ? ; for path in grep_output . lines ( ) { println ! ( " " path ) ; Command :: new ( " " ) . args ( & [ path ] ) . output ( ) ? ; } } Ok ( ( ) ) }
Touch files containing the listed trace points to get `make` to rebuild them.
Touch files containing the listed trace points to get ` make ` to rebuild them .
&self
trace_points
T
&self
trace_points
T