This allows cross compiling for OS X on Linux machines.
This commit is contained in:
Andrew Rynhard 2015-11-05 16:18:19 -08:00
parent d58061f374
commit 0ea7bb507b

View File

@ -27,7 +27,6 @@ import (
"fmt"
"log"
"os"
"os/user"
"path"
)
@ -49,13 +48,9 @@ func usage() {
}
func main() {
currUsr, err := user.Current()
if err != nil {
log.Fatal(err)
}
homeDir := os.Getenv("HOME")
taskName := flag.String("task", "default", "name of task to execute")
dstDir := flag.String("dest", currUsr.HomeDir, "target directory for tasks")
dstDir := flag.String("dest", homeDir, "target directory for tasks")
force := flag.Bool("force", true, "create parent directories to target")
clobber := flag.Bool("clobber", false, "delete files and directories at target")
verbose := flag.Bool("verbose", false, "verbose output")