You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by bl...@apache.org on 2016/05/14 23:43:51 UTC
[18/43] avro git commit: AVRO-1825: Allow running build.sh dist under
git
AVRO-1825: Allow running build.sh dist under git
Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/f10aacc3
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/f10aacc3
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/f10aacc3
Branch: refs/heads/branch-1.8
Commit: f10aacc3f646d4609d56aa632d091b55fa491dcc
Parents: 039272b
Author: Niels Basjes <ni...@apache.org>
Authored: Sun Apr 17 23:10:19 2016 +0200
Committer: Ryan Blue <bl...@apache.org>
Committed: Sat May 14 16:43:07 2016 -0700
----------------------------------------------------------------------
CHANGES.txt | 2 ++
build.sh | 12 +++++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/avro/blob/f10aacc3/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index b25e781..9f76911 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -22,6 +22,8 @@ Trunk (not yet released)
AVRO-1823: Java: Do not swallow IOException while reading magic bytes.
(Koji Noguchi via blue)
+ AVRO-1825: Allow running build.sh dist under git (nielsbasjes)
+
BUG FIXES
AVRO-1493. Java: Avoid the "Turkish Locale Problem". Schema fingerprints are
http://git-wip-us.apache.org/repos/asf/avro/blob/f10aacc3/build.sh
----------------------------------------------------------------------
diff --git a/build.sh b/build.sh
index 1758b84..37b3017 100755
--- a/build.sh
+++ b/build.sh
@@ -87,7 +87,17 @@ case "$target" in
DOC_DIR=avro-doc-$VERSION
rm -rf build/${SRC_DIR}
- svn export --force . build/${SRC_DIR}
+ if [ -d .svn ];
+ then
+ svn export --force . build/${SRC_DIR}
+ elif [ -d .git ];
+ then
+ mkdir -p build/${SRC_DIR}
+ git archive HEAD | tar -x -C build/${SRC_DIR}
+ else
+ echo "Not SVN and not GIT .. cannot continue"
+ exit -1;
+ fi
#runs RAT on artifacts
mvn -N -P rat antrun:run