Use subpackage name as output, rename --in to --pkg

This commit is contained in:
Péter Szilágyi 2015-05-03 17:56:31 +03:00
parent c74f7298e8
commit b12523e1e9
2 changed files with 2 additions and 2 deletions

View File

@ -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
View File

@ -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)")