Skip to content

Commit

Permalink
AVRO-1840: Ensure that build.sh clean really cleans all generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed May 9, 2016
1 parent 02f623b commit f614e15
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions lang/c++/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ case "$target" in

clean)
(cd build && make clean)
rm -rf doc test.avro test6.df
;;

install)
Expand Down
6 changes: 4 additions & 2 deletions lang/c/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lang/csharp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;

*)
Expand Down
2 changes: 1 addition & 1 deletion lang/js/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lang/ruby/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ case "$1" in

clean)
bundle exec rake clean
rm -rf tmp avro.gemspec data.avr
;;

*)
Expand Down

0 comments on commit f614e15

Please sign in to comment.