summaryrefslogtreecommitdiff
path: root/softscript.go
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-09-05 20:37:19 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-09-05 20:37:19 -0500
commitf5b60238e05b124eb40f805eb4a0bbfc0b043da5 (patch)
treef461bff108f5ddafc4078aa7394d7bf2a6309cc9 /softscript.go
parent8f22bd4f5b4eb6996c524bcb6948d36cef0ac822 (diff)
parentfd66fb134967067ed7e1c3182325f646b73c730b (diff)
downloaddeb-planr-f5b60238e05b124eb40f805eb4a0bbfc0b043da5.tar.xz
deb-planr-f5b60238e05b124eb40f805eb4a0bbfc0b043da5.zip
Merge branch 'upstream' into ppa
Merge v0.1.0
Diffstat (limited to 'softscript.go')
-rw-r--r--softscript.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/softscript.go b/softscript.go
deleted file mode 100644
index 9924d54..0000000
--- a/softscript.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package planr
-
-import (
- "io"
- "os"
- "os/exec"
- "log"
-)
-
-func RunCmd(name string, args ...string) {
- cmd := exec.Command(name, args...)
-
- stderr, err := cmd.StderrPipe()
- if err != nil {
- log.Fatal(err);
- }
-
- stdout, err := cmd.StdoutPipe()
- if err != nil {
- log.Fatal(err);
- }
-
- go func() {
- io.Copy(os.Stderr, stderr)
- }()
-
- go func() {
- io.Copy(os.Stdout, stdout)
- }()
-
- if err := cmd.Start(); err != nil {
- log.Fatal(err)
- }
-
- if err != nil {
- log.Fatal(err)
- }
-
- if err := cmd.Wait(); err != nil {
- log.Fatalf("Could not execute cmake command\n%v", err)
- }
-}