Skip to content

Commit

Permalink
Use fmt.Printf() instead of log.Printf() for final instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok committed Nov 25, 2019
1 parent 50e59ed commit 8c30050
Showing 1 changed file with 29 additions and 28 deletions.
57 changes: 29 additions & 28 deletions make.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,37 +792,38 @@ func execMake(args []string, usage func()) {
log.Fatalf("Could not write ITP email: %v\n", err)
}

log.Printf("\n")
log.Printf("Packaging successfully created in %s\n", dir)
log.Printf("\n")
log.Printf(" Source: %s\n", debsrc)
log.Println("Done!")

fmt.Printf("\n")
fmt.Printf("Packaging successfully created in %s\n", dir)
fmt.Printf(" Source: %s\n", debsrc)
switch pkgType {
case typeLibrary:
log.Printf(" Package: %s\n", debLib)
fmt.Printf(" Binary: %s\n", debLib)
case typeProgram:
log.Printf(" Package: %s\n", debProg)
fmt.Printf(" Binary: %s\n", debProg)
case typeLibraryProgram:
log.Printf(" Package: %s\n", debLib)
log.Printf(" Package: %s\n", debProg)
fmt.Printf(" Binary: %s\n", debLib)
fmt.Printf(" Binary: %s\n", debProg)
case typeProgramLibrary:
log.Printf(" Package: %s\n", debProg)
log.Printf(" Package: %s\n", debLib)
}
log.Printf("\n")
log.Printf("Resolve all TODOs in %s, then email it out:\n", itpname)
log.Printf(" sendmail -t < %s\n", itpname)
log.Printf("\n")
log.Printf("Resolve all the TODOs in debian/, find them using:\n")
log.Printf(" grep -r TODO debian\n")
log.Printf("\n")
log.Printf("To build the package, commit the packaging and use gbp buildpackage:\n")
log.Printf(" git add debian && git commit -a -m 'Initial packaging'\n")
log.Printf(" gbp buildpackage --git-pbuilder\n")
log.Printf("\n")
log.Printf("To create the packaging git repository on salsa, use:\n")
log.Printf(" dh-make-golang create-salsa-project %s", debsrc)
log.Printf("\n")
log.Printf("Once you are happy with your packaging, push it to salsa using:\n")
log.Printf(" git remote set-url origin [email protected]:go-team/packages/%s.git\n", debsrc)
log.Printf(" gbp push\n")
fmt.Printf(" Binary: %s\n", debProg)
fmt.Printf(" Binary: %s\n", debLib)
}
fmt.Printf("\n")
fmt.Printf("Resolve all TODOs in %s, then email it out:\n", itpname)
fmt.Printf(" sendmail -t < %s\n", itpname)
fmt.Printf("\n")
fmt.Printf("Resolve all the TODOs in debian/, find them using:\n")
fmt.Printf(" grep -r TODO debian\n")
fmt.Printf("\n")
fmt.Printf("To build the package, commit the packaging and use gbp buildpackage:\n")
fmt.Printf(" git add debian && git commit -a -m 'Initial packaging'\n")
fmt.Printf(" gbp buildpackage --git-pbuilder\n")
fmt.Printf("\n")
fmt.Printf("To create the packaging git repository on salsa, use:\n")
fmt.Printf(" dh-make-golang create-salsa-project %s\n", debsrc)
fmt.Printf("\n")
fmt.Printf("Once you are happy with your packaging, push it to salsa using:\n")
fmt.Printf(" git remote set-url origin [email protected]:go-team/packages/%s.git\n", debsrc)
fmt.Printf(" gbp push\n")
}

0 comments on commit 8c30050

Please sign in to comment.