incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron McCurry <amccu...@gmail.com>
Subject Re: [2/2] git commit: Add release scripts for easier release processing.
Date Thu, 05 Feb 2015 00:58:39 GMT
Yes it would. How would I echo what command failed after the failure?

On Wednesday, February 4, 2015, Tim Williams <williamstw@gmail.com> wrote:

> On Wed, Feb 4, 2015 at 4:38 PM,  <amccurry@apache.org <javascript:;>>
> wrote:
> > Add release scripts for easier release processing.
> >
> >
> > Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
> > Commit:
> http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/fb0368de
> > Tree:
> http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/fb0368de
> > Diff:
> http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/fb0368de
> >
> > Branch: refs/heads/master
> > Commit: fb0368de885ed099e5b1b55d5220547641f58c90
> > Parents: fc499b4
> > Author: Aaron McCurry <amccurry@gmail.com <javascript:;>>
> > Authored: Wed Feb 4 16:38:10 2015 -0500
> > Committer: Aaron McCurry <amccurry@gmail.com <javascript:;>>
> > Committed: Wed Feb 4 16:38:10 2015 -0500
> >
> > ----------------------------------------------------------------------
> >  build_release.sh                     |  35 ----------
> >  release_scripts/build_release.sh     | 104
> ++++++++++++++++++++++++++++++
> >  release_scripts/hadoop1.versions     |  16 +++++
> >  release_scripts/hadoop2-mr1.versions |  16 +++++
> >  release_scripts/hadoop2.versions     |  18 ++++++
> >  release_scripts/release_profiles.txt |  18 ++++++
> >  6 files changed, 172 insertions(+), 35 deletions(-)
> > ----------------------------------------------------------------------
> >
> >
> >
> http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/fb0368de/build_release.sh
> > ----------------------------------------------------------------------
> > diff --git a/build_release.sh b/build_release.sh
> > deleted file mode 100755
> > index 202e5fc..0000000
> > --- a/build_release.sh
> > +++ /dev/null
> > @@ -1,35 +0,0 @@
> > -#!/usr/bin/env bash
> > -
> > -# Licensed to the Apache Software Foundation (ASF) under one or more
> > -# contributor license agreements.  See the NOTICE file distributed with
> > -# this work for additional information regarding copyright ownership.
> > -# The ASF licenses this file to You under the Apache License, Version
> 2.0
> > -# (the "License"); you may not use this file except in compliance with
> > -# the License.  You may obtain a copy of the License at
> > -#
> > -#     http://www.apache.org/licenses/LICENSE-2.0
> > -#
> > -# Unless required by applicable law or agreed to in writing, software
> > -# distributed under the License is distributed on an "AS IS" BASIS,
> > -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> > -# See the License for the specific language governing permissions and
> > -# limitations under the License.
> > -
> > -if [ -z "$1" ]; then
> > -  echo "No output directory specified."
> > -fi
> > -OUTPUT_DIR=$1
> > -mvn clean -Dhadoop1
> > -mvn install -Dhadoop1 -Djava.awt.headless=true
> > -mvn site -Ddependency.locations.enabled=false -DskipTests -Dhadoop1
> -Djava.awt.headless=true
> > -mvn site:stage -DskipTests -Dhadoop1 -Djava.awt.headless=true
> > -mvn package -DskipTests -Dhadoop1 -Djava.awt.headless=true
> > -cp distribution/target/*-bin.tar.gz $OUTPUT_DIR
> > -cp distribution/target/*-src.tar.gz $OUTPUT_DIR
> > -
> > -mvn clean -Dhadoop2
> > -mvn install -Dhadoop2 -Djava.awt.headless=true
> > -mvn site -Ddependency.locations.enabled=false -DskipTests -Dhadoop2
> -Djava.awt.headless=true
> > -mvn site:stage -DskipTests -Dhadoop2 -Djava.awt.headless=true
> > -mvn package -DskipTests -Dhadoop2 -Djava.awt.headless=true
> > -cp distribution/target/*-bin.tar.gz $OUTPUT_DIR
> > \ No newline at end of file
> >
> >
> http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/fb0368de/release_scripts/build_release.sh
> > ----------------------------------------------------------------------
> > diff --git a/release_scripts/build_release.sh
> b/release_scripts/build_release.sh
> > new file mode 100755
> > index 0000000..f3b7993
> > --- /dev/null
> > +++ b/release_scripts/build_release.sh
> > @@ -0,0 +1,104 @@
> > +#!/usr/bin/env bash
> > +
> > +# Licensed to the Apache Software Foundation (ASF) under one or more
> > +# contributor license agreements.  See the NOTICE file distributed with
> > +# this work for additional information regarding copyright ownership.
> > +# The ASF licenses this file to You under the Apache License, Version
> 2.0
> > +# (the "License"); you may not use this file except in compliance with
> > +# the License.  You may obtain a copy of the License at
> > +#
> > +#     http://www.apache.org/licenses/LICENSE-2.0
> > +#
> > +# Unless required by applicable law or agreed to in writing, software
> > +# distributed under the License is distributed on an "AS IS" BASIS,
> > +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> > +# See the License for the specific language governing permissions and
> > +# limitations under the License.
> > +
> > +function stopOnError {
>
> seems like set -e at the top woulda worked in all these cases?
>
> --tim
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message