avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [avro] branch master updated: AVRO-2505: `./build.sh clean` in the c++ directory doesn't remove all temporary files
Date Mon, 19 Aug 2019 17:09:33 GMT
This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 4de6d83  AVRO-2505: `./build.sh clean` in the c++ directory doesn't remove all temporary
files
4de6d83 is described below

commit 4de6d838be56662b658e220deb2f1475685f768c
Author: Kengo Seki <sekikn@apache.org>
AuthorDate: Thu Aug 15 09:04:00 2019 +0900

    AVRO-2505: `./build.sh clean` in the c++ directory doesn't remove all temporary files
---
 build.sh          |  5 +++--
 lang/c++/build.sh | 11 ++++++-----
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/build.sh b/build.sh
index 1376a25..2660afa 100755
--- a/build.sh
+++ b/build.sh
@@ -23,7 +23,7 @@ VERSION=`cat share/VERSION.txt`
 DOCKER_XTRA_ARGS=""
 
 function usage {
-  echo "Usage: $0 {lint|test|dist|sign|clean|docker [--args \"docker-args\"]|rat|githooks|docker-test}"
+  echo "Usage: $0 {lint|test|dist|sign|clean|veryclean|docker [--args \"docker-args\"]|rat|githooks|docker-test}"
   exit 1
 }
 
@@ -208,6 +208,7 @@ do
 
       (cd lang/perl; ./build.sh clean)
       ;;
+
     veryclean)
       rm -rf build dist
       (cd doc; ant clean)
@@ -241,8 +242,8 @@ do
       (cd lang/php; ./build.sh clean)
 
       (cd lang/perl; ./build.sh clean)
+
       rm -rf lang/c++/build
-      rm -rf lang/c++/test?.df
       rm -rf lang/js/node_modules
       rm -rf lang/perl/inc/
       rm -rf lang/ruby/.gem/
diff --git a/lang/c++/build.sh b/lang/c++/build.sh
index 5c6a235..543638b 100755
--- a/lang/c++/build.sh
+++ b/lang/c++/build.sh
@@ -44,10 +44,6 @@ DOC_CPP=$BUILD/$AVRO_DOC/api/cpp
 DIST_DIR=../../dist/cpp
 TARFILE=../dist/cpp/$AVRO_CPP.tar.gz
 
-(mkdir -p build; cd build; cmake -G "Unix Makefiles" ..)
-for target in "$@"
-do
-
 function do_doc() {
   doxygen
   if [ -d doc ]
@@ -58,6 +54,7 @@ function do_doc() {
     exit 1
   fi
 }
+
 function do_dist() {
   rm -rf $BUILD_CPP/
   mkdir -p $BUILD_CPP
@@ -74,6 +71,10 @@ function do_dist() {
   fi
 }
 
+(mkdir -p build; cd build; cmake -G "Unix Makefiles" ..)
+for target in "$@"
+do
+
 case "$target" in
   lint)
     echo 'This is a stub where someone can provide linting.'
@@ -112,7 +113,7 @@ case "$target" in
 
   clean)
     (cd build && make clean)
-    rm -rf doc test.avro test6.df
+    rm -rf doc test.avro test?.df test_skip.df
     ;;
 
   install)


Mime
View raw message