attempt to stabilize deb package creation
This commit is contained in:
parent
339f5ff27e
commit
48585f15a5
38
main.go
38
main.go
|
@ -4,7 +4,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
@ -103,19 +102,38 @@ func main() {
|
|||
}
|
||||
|
||||
doListRepos()
|
||||
|
||||
if argv.DebBuild != nil {
|
||||
buildDeb()
|
||||
okExit("")
|
||||
}
|
||||
|
||||
if argv.MakeInstall != nil {
|
||||
if err := doInstall(); err != nil {
|
||||
log.Info("doInstall() failed", err)
|
||||
badExit(err)
|
||||
} else {
|
||||
}
|
||||
okExit("EVERYTHING BUILT!")
|
||||
}
|
||||
|
||||
if argv.Test {
|
||||
homeDir, _ := os.UserHomeDir()
|
||||
|
||||
testdir := filepath.Join(homeDir, "go/src/go.wit.com/apps/utils/wit-utils/go-clone-test/")
|
||||
os.Chdir(testdir)
|
||||
shell.RunRealtime([]string{"go", "install"})
|
||||
|
||||
workdir := filepath.Join(homeDir, "gowork")
|
||||
if err := os.MkdirAll(workdir, os.ModePerm); err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
os.Chdir(workdir)
|
||||
shell.RunRealtime([]string{"go-clone-test"})
|
||||
}
|
||||
|
||||
okExit("everything compiled")
|
||||
|
||||
/*
|
||||
all := me.forge.Repos.SortByFullPath()
|
||||
for all.Scan() {
|
||||
check := all.Next()
|
||||
|
@ -246,21 +264,7 @@ func main() {
|
|||
// shell.Run([]string{"forge", "--find-private"})
|
||||
badExit(errors.New("some repos failed"))
|
||||
}
|
||||
if argv.Test {
|
||||
homeDir, _ := os.UserHomeDir()
|
||||
|
||||
testdir := filepath.Join(homeDir, "go/src/go.wit.com/apps/utils/wit-utils/go-clone-test/")
|
||||
os.Chdir(testdir)
|
||||
shell.RunRealtime([]string{"go", "install"})
|
||||
|
||||
workdir := filepath.Join(homeDir, "gowork")
|
||||
if err := os.MkdirAll(workdir, os.ModePerm); err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
os.Chdir(workdir)
|
||||
shell.RunRealtime([]string{"go-clone-test"})
|
||||
}
|
||||
okExit("everything compiled")
|
||||
*/
|
||||
}
|
||||
|
||||
// this is dumb. sync this with go-deb
|
||||
|
|
Loading…
Reference in New Issue