Skip to content

Commit

Permalink
Merge #21: ncdns: Fix linux/386 builds
Browse files Browse the repository at this point in the history
c964910 ncdns: Fix linux/386 builds (JeremyRand)

Pull request description:

  Refs #2 (comment)
  • Loading branch information
JeremyRand committed Jun 8, 2019
2 parents bf517ab + c964910 commit 62a1a80
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions projects/ncdns/build
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ go install -ldflags '-s' github.com/namecoin/ncdns/...
# go build -ldflags '-s' "$x"
#done

ls $GOPATH/bin
[% IF c("var/linux-x86_64") -%]
GOPATHBIN="${GOPATH}/bin"
[% ELSE -%]
GOPATHBIN="${GOPATH}/bin/${GOOS}_${GOARCH}"
[% END -%]

ls $GOPATHBIN

for x in ncdns ncdumpzone ncdt generate_nmc_cert tlsrestrict_chromium_tool; do
cp -a $GOPATH/bin/"$x"[% IF c("var/windows") %].exe[% END %] $distdir/
cp -a $GOPATHBIN/"$x"[% IF c("var/windows") %].exe[% END %] $distdir/
done

cd $distdir
Expand Down

0 comments on commit 62a1a80

Please sign in to comment.