cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1303385 - /cocoon/trunk/tools/cocoon-maven-javadocs-script-report/src/main/java/org/apache/cocoon/maven/javadocs/report/JavadocsScriptGeneratorReport.java
Date Wed, 21 Mar 2012 13:22:38 GMT
Author: ilgrosso
Date: Wed Mar 21 13:22:38 2012
New Revision: 1303385

URL: http://svn.apache.org/viewvc?rev=1303385&view=rev
Log:
Fixing generated create-apidocs.sh so that it works with sh and bash

Modified:
    cocoon/trunk/tools/cocoon-maven-javadocs-script-report/src/main/java/org/apache/cocoon/maven/javadocs/report/JavadocsScriptGeneratorReport.java

Modified: cocoon/trunk/tools/cocoon-maven-javadocs-script-report/src/main/java/org/apache/cocoon/maven/javadocs/report/JavadocsScriptGeneratorReport.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-maven-javadocs-script-report/src/main/java/org/apache/cocoon/maven/javadocs/report/JavadocsScriptGeneratorReport.java?rev=1303385&r1=1303384&r2=1303385&view=diff
==============================================================================
--- cocoon/trunk/tools/cocoon-maven-javadocs-script-report/src/main/java/org/apache/cocoon/maven/javadocs/report/JavadocsScriptGeneratorReport.java
(original)
+++ cocoon/trunk/tools/cocoon-maven-javadocs-script-report/src/main/java/org/apache/cocoon/maven/javadocs/report/JavadocsScriptGeneratorReport.java
Wed Mar 21 13:22:38 2012
@@ -130,16 +130,14 @@ public class JavadocsScriptGeneratorRepo
                         project.getArtifactId() + "/" + project.getVersion() + "/$f\n");
         sb.append("dl=0\n");
         sb.append("\n");
-        sb.append("if [ -f $f ]\n");
+        sb.append("if [ ! -f $f ]\n");
         sb.append("then\n");
-        sb.append("else\n");
         sb.append("  wget --header \"User-Agent: Mozilla/5.0 Firefox/2.0.0.7\" http://repo1.maven.org/maven2/$jd\n");
         sb.append("  dl=1\n");
         sb.append("fi\n");
         sb.append("\n");
-        sb.append("if [ -f $f ]\n");
+        sb.append("if [ ! -f $f ]\n");
         sb.append("then\n");
-        sb.append("else\n");
         sb.append("  wget --header \"User-Agent: Mozilla/5.0 Firefox/2.0.0.7\" http://people.apache.org/builds/cocoon/$jd\n");
         sb.append("  dl=1\n");
         sb.append("fi\n");
@@ -150,6 +148,7 @@ public class JavadocsScriptGeneratorRepo
         sb.append("  exit 0\n");
         sb.append("else\n");
         sb.append("  unzip -qo $f\n");
+        sb.append("  rm -f $f\n");
         sb.append("fi\n");
         sb.append("\n");
         sb.append("exit 0\n");



Mime
View raw message