Author: cutting
Date: Thu Jul  3 21:21:35 2014
New Revision: 1607750

URL: http://svn.apache.org/r1607750
Log:
make perl build commands work in any order

Modified:
    avro/trunk/build.sh

Modified: avro/trunk/build.sh
URL: 
http://svn.apache.org/viewvc/avro/trunk/build.sh?rev=1607750&r1=1607749&r2=1607750&view=diff
==============================================================================
--- avro/trunk/build.sh (original)
+++ avro/trunk/build.sh Thu Jul  3 21:21:35 2014
@@ -117,7 +117,7 @@ case "$target" in
        (cd lang/php; ./build.sh dist)
 
         mkdir -p dist/perl
-       (cd lang/perl; make dist)
+       (cd lang/perl; perl ./Makefile.PL && make dist)
         cp lang/perl/Avro-$VERSION.tar.gz dist/perl/
 
        # build docs
@@ -169,7 +169,7 @@ case "$target" in
 
        (cd lang/php; ./build.sh clean)
 
-       (cd lang/perl; make clean)
+       (cd lang/perl; [ -f Makefile ] && make clean)
        ;;
 
     *)


Reply via email to