Update release scripts

This commit is contained in:
Naoki Takezoe
2015-08-01 03:02:38 +09:00
parent 836fa47812
commit 4a35b65c2c
4 changed files with 6 additions and 6 deletions

3
env.sh
View File

@@ -1,3 +0,0 @@
#!/bin/sh
export GITBUCKET_VERSION=`cat project/build.scala | grep 'val Version' | cut -d \" -f 2`
echo "GITBUCKET_VERSION: $GITBUCKET_VERSION"

View File

@@ -1,5 +1,5 @@
#!/bin/sh
. ../env.sh
. ./env.sh
cd ../
./sbt.sh clean assembly

3
release/env.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
export GITBUCKET_VERSION=`cat ../project/build.scala | grep 'val Version' | cut -d \" -f 2`
echo "GITBUCKET_VERSION: $GITBUCKET_VERSION"

View File

@@ -3,13 +3,13 @@ D="$(dirname "$0")"
D="$(cd "${D}"; pwd)"
DD="$(dirname "${D}")"
(
for f in "${DD}/env.sh" "${D}/build.xml"; do
for f in "${D}/env.sh" "${D}/build.xml"; do
if [ ! -s "${f}" ]; then
echo >&2 "$0: Unable to access file '${f}'"
exit 1
fi
done
. "${D}/env.sh"
cd "${DD}"
. "${DD}/env.sh"
ant -f "${D}/build.xml" all
)