diff options
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | argv.go | 13 | ||||
| -rw-r--r-- | doBuild.debian.go | 3 |
3 files changed, 18 insertions, 6 deletions
@@ -80,6 +80,14 @@ deb-with-commits-all: forge normal wit build deb --all --force +deb-with-commits-all-riscv64: + make commit + make merge + rm -f ~/incoming/*.deb + forge commit --all + forge normal + wit build deb --all --force --arch riscv64 + all: forge commit --all forge merge --all @@ -56,12 +56,13 @@ type LinuxCmd struct { } type DebianCmd struct { - Release bool `arg:"--release" help:"use go-deb --release"` - DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` - Verbose bool `arg:"--verbose" help:"be loud about it"` - Force bool `arg:"--force" help:"force devel .deb builds into /incoming"` - Priv bool `arg:"--private" help:"build private repos"` - All bool `arg:"--all" help:"build everything again"` + Release bool `arg:"--release" help:"use go-deb --release"` + DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` + Verbose bool `arg:"--verbose" help:"be loud about it"` + Force bool `arg:"--force" help:"force devel .deb builds into /incoming"` + Priv bool `arg:"--private" help:"build private repos"` + All bool `arg:"--all" help:"build everything again"` + Arch string `arg:"--arch" help:"what arch"` } type CloneCmd struct { diff --git a/doBuild.debian.go b/doBuild.debian.go index a1ec302..a396bda 100644 --- a/doBuild.debian.go +++ b/doBuild.debian.go @@ -142,6 +142,9 @@ func buildDeb(repo *gitpb.Repo) error { cmd = []string{"go-deb", "--namespace", repo.Namespace, "--dir", outdir} // return nil } + if argv.Build.Debian.Arch != "" { + cmd = append(cmd, "--arch", argv.Build.Debian.Arch) + } if shouldBuild(repo) != "yes" { return nil |
