avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject [14/43] avro git commit: AVRO-1840: Ensure that build.sh clean really cleans all generated files
Date Sat, 14 May 2016 23:43:47 GMT
AVRO-1840: Ensure that build.sh clean really cleans all generated files


Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/a0663ae2
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/a0663ae2
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/a0663ae2

Branch: refs/heads/branch-1.8
Commit: a0663ae2b40baf697fda3936642a5bb95fac3f5d
Parents: c6b5368
Author: Niels Basjes <nielsbasjes@apache.org>
Authored: Mon May 9 10:29:15 2016 +0200
Committer: Ryan Blue <blue@apache.org>
Committed: Sat May 14 16:43:07 2016 -0700

----------------------------------------------------------------------
 CHANGES.txt          |  2 ++
 build.sh             | 15 +++++++++++++++
 lang/c++/build.sh    |  1 +
 lang/c/build.sh      |  6 ++++--
 lang/csharp/build.sh |  3 ++-
 lang/js/build.sh     |  2 +-
 lang/ruby/build.sh   |  1 +
 7 files changed, 26 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/a0663ae2/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 4eac415..c33e743 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -38,6 +38,8 @@ Trunk (not yet released)
     AVRO-1838: Java: Update checkstyle to catch trailing whitespace.
     (nielsbasjes via blue)
 
+    AVRO-1840: Ensure that build.sh clean really cleans all generated files (nielsbasjes)
+
   BUG FIXES
 
     AVRO-1493. Java: Avoid the "Turkish Locale Problem". Schema fingerprints are

http://git-wip-us.apache.org/repos/asf/avro/blob/a0663ae2/build.sh
----------------------------------------------------------------------
diff --git a/build.sh b/build.sh
index a373c2c..93654db 100755
--- a/build.sh
+++ b/build.sh
@@ -167,9 +167,20 @@ do
       (cd doc; ant clean)
 
       (mvn clean)
+      rm -rf lang/java/*/userlogs/
+      rm -rf lang/java/*/dependency-reduced-pom.xml
 
       (cd lang/py; ant clean)
+      rm -rf lang/py/userlogs/
+
       (cd lang/py3; python3 setup.py clean)
+      rm -rf lang/py3/dist
+      rm -rf lang/py3/avro_python3.egg-info
+      rm -f  lang/py3/avro/*.avsc
+      rm -f  lang/py3/avro/VERSION.txt
+      rm -rf lang/py3/avro/__pycache__/
+      rm -f  lang/py3/avro/tests/interop.avsc
+      rm -rf lang/py3/avro/tests/__pycache__/
 
       (cd lang/c; ./build.sh clean)
 
@@ -184,6 +195,10 @@ do
       (cd lang/php; ./build.sh clean)
 
       (cd lang/perl; [ ! -f Makefile ] || make clean)
+      rm -f  lang/perl/Avro-*.tar.gz
+      rm -f  lang/perl/META.yml
+      rm -f  lang/perl/Makefile.old
+      rm -rf lang/perl/inc/
       ;;
 
     docker)

http://git-wip-us.apache.org/repos/asf/avro/blob/a0663ae2/lang/c++/build.sh
----------------------------------------------------------------------
diff --git a/lang/c++/build.sh b/lang/c++/build.sh
index e5beaea..2c98885 100755
--- a/lang/c++/build.sh
+++ b/lang/c++/build.sh
@@ -97,6 +97,7 @@ case "$target" in
 
   clean)
     (cd build && make clean)
+    rm -rf doc test.avro test6.df
     ;;
 
   install)

http://git-wip-us.apache.org/repos/asf/avro/blob/a0663ae2/lang/c/build.sh
----------------------------------------------------------------------
diff --git a/lang/c/build.sh b/lang/c/build.sh
index e00db69..f76f035 100755
--- a/lang/c/build.sh
+++ b/lang/c/build.sh
@@ -36,9 +36,11 @@ function prepare_build {
 
 function clean {
   if [ -d $build_dir ]; then
-  find $build_dir | xargs chmod 755
-  rm -rf $build_dir
+    find $build_dir | xargs chmod 755
+    rm -rf $build_dir
   fi
+  rm -f VERSION.txt
+  rm -f examples/quickstop.db
 }
 
 case "$1" in

http://git-wip-us.apache.org/repos/asf/avro/blob/a0663ae2/lang/csharp/build.sh
----------------------------------------------------------------------
diff --git a/lang/csharp/build.sh b/lang/csharp/build.sh
index 66520c1..97beaf8 100755
--- a/lang/csharp/build.sh
+++ b/lang/csharp/build.sh
@@ -53,8 +53,9 @@ case "$1" in
     ;;
 
   clean)
-    rm -rf src/apache/{main,test,codegen,ipc}/obj
+    rm -rf src/apache/{main,test,codegen,ipc,msbuild,perf}/obj
     rm -rf build
+    rm -f  TestResult.xml
     ;;
 
   *)

http://git-wip-us.apache.org/repos/asf/avro/blob/a0663ae2/lang/js/build.sh
----------------------------------------------------------------------
diff --git a/lang/js/build.sh b/lang/js/build.sh
index 08823fc..45a31f5 100755
--- a/lang/js/build.sh
+++ b/lang/js/build.sh
@@ -30,7 +30,7 @@ case "$1" in
     mv avro-js-*.tgz ../../dist/js
     ;;
   clean)
-    rm -rf node_modules
+    rm -rf coverage
     ;;
   *)
     echo "Usage: $0 {test|dist|clean}" >&2

http://git-wip-us.apache.org/repos/asf/avro/blob/a0663ae2/lang/ruby/build.sh
----------------------------------------------------------------------
diff --git a/lang/ruby/build.sh b/lang/ruby/build.sh
index 0198400..dc3193c 100755
--- a/lang/ruby/build.sh
+++ b/lang/ruby/build.sh
@@ -40,6 +40,7 @@ case "$1" in
      clean)
         bundle install
         bundle exec rake clean
+        rm -rf tmp avro.gemspec data.avr
        ;;
 
      *)


Mime
View raw message