mirror of https://github.com/status-im/xgo.git
Use subpackage name as output, rename --in to --pkg
This commit is contained in:
parent
c74f7298e8
commit
b12523e1e9
|
@ -125,7 +125,7 @@ RUN \
|
||||||
echo ' fi' >> $BUILD && \
|
echo ' fi' >> $BUILD && \
|
||||||
echo 'fi' >> $BUILD && \
|
echo 'fi' >> $BUILD && \
|
||||||
echo >> $BUILD && \
|
echo >> $BUILD && \
|
||||||
echo 'NAME=`basename $1`' >> $BUILD && \
|
echo 'NAME=`basename $1/$PACK`' >> $BUILD && \
|
||||||
echo 'if [ "$OUT" != "" ]; then' >> $BUILD && \
|
echo 'if [ "$OUT" != "" ]; then' >> $BUILD && \
|
||||||
echo ' NAME=$OUT' >> $BUILD && \
|
echo ' NAME=$OUT' >> $BUILD && \
|
||||||
echo 'fi' >> $BUILD && \
|
echo 'fi' >> $BUILD && \
|
||||||
|
|
2
xgo.go
2
xgo.go
|
@ -21,7 +21,7 @@ var dockerDist = "karalabe/xgo-"
|
||||||
|
|
||||||
// Command line arguments to fine tune the compilation
|
// Command line arguments to fine tune the compilation
|
||||||
var goVersion = flag.String("go", "latest", "Go release to use for cross compilation")
|
var goVersion = flag.String("go", "latest", "Go release to use for cross compilation")
|
||||||
var inPackage = flag.String("in", "", "Sub-package to build if not root import")
|
var inPackage = flag.String("pkg", "", "Sub-package to build if not root import")
|
||||||
var outPrefix = flag.String("out", "", "Prefix to use for output naming (empty = package name)")
|
var outPrefix = flag.String("out", "", "Prefix to use for output naming (empty = package name)")
|
||||||
var srcBranch = flag.String("branch", "", "Version control branch to build")
|
var srcBranch = flag.String("branch", "", "Version control branch to build")
|
||||||
var crossDeps = flag.String("deps", "", "CGO dependencies (configure/make based archives)")
|
var crossDeps = flag.String("deps", "", "CGO dependencies (configure/make based archives)")
|
||||||
|
|
Loading…
Reference in New Issue