You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ri...@apache.org on 2016/03/08 14:19:46 UTC
[13/50] [abbrv] brooklyn-client git commit: Updates to support easier
distribution via brooklyn-dist
Updates to support easier distribution via brooklyn-dist
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/e5208573
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/e5208573
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/e5208573
Branch: refs/heads/master
Commit: e520857385482644fbc9137260ffc2c7569fc4a5
Parents: ab61094
Author: Geoff Macartney <ge...@cloudsoftcorp.com>
Authored: Tue Feb 23 14:55:55 2016 +0000
Committer: Geoff Macartney <ge...@cloudsoftcorp.com>
Committed: Tue Feb 23 14:55:55 2016 +0000
----------------------------------------------------------------------
build.xml | 22 ++++++++++------------
pom.xml | 3 +--
release/build.sh | 14 ++++++++------
src/main/assembly/bin.xml | 5 +++--
4 files changed, 22 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/e5208573/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 98843f7..625fd9e 100644
--- a/build.xml
+++ b/build.xml
@@ -1,41 +1,39 @@
<project name="CLI" >
<property name="build.script" location="${basedir}/release/build.sh"/>
- <target name="all" >
+ <target name="makebin">
+ <mkdir dir="${project.build.directory}/bin" />
+ </target>
+
+ <target name="all" depends="makebin" >
<exec executable="${build.script}">
<arg value="-A"/>
<arg value="-t"/>
- <arg value="-l"/>
- <arg value="${project.version}"/>
<arg value="-d"/>
- <arg value="${project.build.directory}"/>
+ <arg value="${project.build.directory}/bin"/>
<arg value="-s"/>
<arg value="${basedir}"/>
</exec>
</target>
- <target name="cross">
+ <target name="cross" depends="makebin" >
<exec executable="${build.script}">
<arg value="-t"/>
- <arg value="-l"/>
- <arg value="${project.version}"/>
<arg value="-a"/>
<arg value="${arch}"/>
<arg value="-o"/>
<arg value="${os}"/>
<arg value="-d"/>
- <arg value="${project.build.directory}"/>
+ <arg value="${project.build.directory}/bin"/>
<arg value="-s"/>
<arg value="${basedir}"/>
</exec>
</target>
- <target name="native">
+ <target name="native" depends="makebin" >
<exec executable="${build.script}">
- <arg value="-l"/>
- <arg value="${project.version}"/>
<arg value="-d"/>
- <arg value="${project.build.directory}"/>
+ <arg value="${project.build.directory}/bin"/>
<arg value="-s"/>
<arg value="${basedir}"/>
</exec>
http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/e5208573/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 8e175fb..4ea8c16 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,8 +27,7 @@
<groupId>org.apache.brooklyn</groupId>
<artifactId>brooklyn-client-cli</artifactId>
- <version>0.9.0</version>
-
+ <version>0.9.0-SNAPSHOT</version> <!-- BROOKLYN_VERSION -->
<name>Brooklyn Client Command Line Interface</name>
<description>
A command line client for Apache Brooklyn
http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/e5208573/release/build.sh
----------------------------------------------------------------------
diff --git a/release/build.sh b/release/build.sh
index f31cd6d..7c79c92 100755
--- a/release/build.sh
+++ b/release/build.sh
@@ -140,7 +140,7 @@ fi
# Set GOPATH to $outdir and link source
export GOPATH=${outdir}
mkdir -p ${GOPATH}/src/${PROJECT%/*}
-ln -s ${sourcedir} ${GOPATH}/src/${PROJECT}
+[ -e ${GOPATH}/src/${PROJECT} ] || ln -s ${sourcedir} ${GOPATH}/src/${PROJECT}
command -v $GODEP >/dev/null 2>&1 || {
@@ -189,15 +189,17 @@ elif [ -z "$all" ]; then
exit 1
fi
echo "Building $BRNAME for $os/$arch"
- GOOS="$os" GOARCH="$arch" $GODEP $GOBIN build -ldflags "-s" -o "${outdir}/${BRNAME}${label}${timestamp}.$os.$arch" $CLI_PACKAGE
+ mkdir -p ${outdir}/$os.$arch
+ GOOS="$os" GOARCH="$arch" $GODEP $GOBIN build -ldflags "-s" -o "${outdir}/$os.$arch/${BRNAME}${label}" $CLI_PACKAGE
else
echo "Building $BRNAME for all OS/ARCH:"
os="$OSVALUES"
arch="$ARCHVALUES"
- for j in $arch; do
- for i in $os; do
- echo " $i/$j"
- GOOS="$i" GOARCH="$j" $GODEP $GOBIN build -ldflags "-s" -o "${outdir}/${BRNAME}${label}${timestamp}.$i.$j" $CLI_PACKAGE
+ for archv in $arch; do
+ for osv in $os; do
+ echo " $osv/$archv"
+ mkdir -p ${outdir}/$osv.$archv
+ GOOS="$osv" GOARCH="$archv" $GODEP $GOBIN build -ldflags "-s" -o "${outdir}/$osv.$archv/${BRNAME}${label}" $CLI_PACKAGE
done
done
fi
http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/e5208573/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/src/main/assembly/bin.xml b/src/main/assembly/bin.xml
index 4337549..580621f 100644
--- a/src/main/assembly/bin.xml
+++ b/src/main/assembly/bin.xml
@@ -15,9 +15,10 @@
</includes>
</fileSet>
<fileSet>
- <directory>${project.build.directory}</directory>
+ <directory>${project.build.directory}/bin</directory>
+ <outputDirectory><!-- leave blank, meaning 'root of archive' --></outputDirectory>
<includes>
- <include>br.*</include>
+ <include>**/br</include>
</includes>
</fileSet>
</fileSets>