summaryrefslogtreecommitdiff
path: root/protoc.go
diff options
context:
space:
mode:
Diffstat (limited to 'protoc.go')
-rw-r--r--protoc.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/protoc.go b/protoc.go
index d8dcf7e..4d1bec7 100644
--- a/protoc.go
+++ b/protoc.go
@@ -96,16 +96,18 @@ func (pb *Files) protocBuild(pf *File) error {
for i, s := range cmd {
log.Info("\t", i, s)
}
- return runprotoc(argv.GoSrc, cmd)
+ os.Chdir(argv.GoSrc)
+ _, err = shell.RunVerbose(cmd)
+ return err
}
+/*
func runprotoc(pwd string, mycmd []string) error {
- result := shell.PathRun(argv.GoSrc, mycmd)
- if result.Error != nil {
- return userNotes(result)
- }
- if result.Exit != 0 {
- return userNotes(result)
+ os.Chdir(argv.GoSrc)
+ err := shell.Exec(mycmd)
+ if err != nil {
+ return err
}
return nil
}
+*/