Lines Matching refs:outputFile
112 outputFile := flags.String("o", "-", "Where to write the NOTICE text file. (default stdout)")
126 if len(*outputFile) == 0 {
131 dir, err := filepath.Abs(filepath.Dir(*outputFile))
133 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
138 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
142 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
151 if *outputFile != "-" {
155 if strings.HasSuffix(*outputFile, ".gz") {
176 if *outputFile != "-" {
177 err := os.WriteFile(*outputFile, obuf.Bytes(), 0666)
179 fmt.Fprintf(os.Stderr, "could not write output to %q: %s\n", *outputFile, err)
184 err := deptools.WriteDepFile(*depsFile, *outputFile, deps)