]> granicus.if.org Git - icu/commitdiff
ICU-10366 allow inplace build, add note about xalan/xerces
authorSteven R. Loomis <srl@icu-project.org>
Fri, 6 Sep 2013 01:59:35 +0000 (01:59 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Fri, 6 Sep 2013 01:59:35 +0000 (01:59 +0000)
X-SVN-Rev: 34210

tools/release/java/Makefile
tools/release/java/build.xml
tools/release/java/readme.txt
tools/release/java/src/com/ibm/icu/dev/tools/docs/StableAPI.java

index b0317207b7ae4cac8af0bd095884048b57b11194..dd2c683721dd195d6ace6ba8bf7c041286f00870 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2011 IBM and Others. All Rights Reserved
+# Copyright (C) 2009-2013 IBM and Others. All Rights Reserved
 
 #
 #
@@ -6,7 +6,7 @@
 #Usage:
 # make OLD_ICU=/xsrl/E/401m40  NEW_ICU=/xsrl/E/icu4ct42
 #
-# you can put the OLD_ICU=xx and NEW_ICU=yy in separate lines in Makefile.local 
+# you can put the OLD_ICU=xx and NEW_ICU=yy in separate lines in Makefile.local
 #
 
 ANT=ant
@@ -37,6 +37,16 @@ endif
 
 all: $(TARGET) $(LOCAL_TARGET)
 
+# auto "build" the "old" icu into OLD_ICU_BUILD
+tmp-old: $(OLD_ICU)/source/configure
+       mkdir -p $(OLD_ICU_BUILD)/
+       ( cd $(OLD_ICU_BUILD)/ && $(OLD_ICU)/source/configure )
+
+# auto "build" the "old" icu into OLD_ICU_BUILD
+tmp-new: $(NEW_ICU)/source/configure
+       mkdir -p $(NEW_ICU_BUILD)/
+       ( cd $(NEW_ICU_BUILD)/ && $(NEW_ICU)/source/configure )
+
 
 ifneq ($(NOTSET),)
 check-vars:
@@ -46,7 +56,7 @@ else
 check-vars:
 endif
 
-.PHONY: check-vars classes clean-docs
+.PHONY: check-vars classes clean-docs tmp-old
 
 .PRECIOUS: $(TARGET) $(OLD_ICU_BUILD)/$(DOXYFILE) $(NEW_ICU_BUILD)/$(DOXYFILE)
 
@@ -58,18 +68,19 @@ UVERSIONH=$(XML)/uversion_8h.xml
 clean-docs: | check-vars
        -rm -rf "$(OLD_ICU_BUILD)/$(XML)" "$(NEW_ICU_BUILD)/$(XML)"
 
-$(TARGET): check-vars $(OLD_ICU_BUILD)/$(XML) $(NEW_ICU_BUILD)/$(XML) 
+$(TARGET): check-vars $(OLD_ICU_BUILD)/$(XML) $(NEW_ICU_BUILD)/$(XML)
        echo "Remember to run the non-ascii file detector if you get errors."
        $(ANT) -Dolddir="$(OLD_ICU_BUILD)/$(XML)" -Dnewdir="$(NEW_ICU_BUILD)/$(XML)" $(ANT_TARGET)
+       echo "If you get no-changes, see the readme- may need to add xalan/xerces jars."
 
-# check-vars $(OLD_ICU_BUILD)/$(XML) $(NEW_ICU_BUILD)/$(XML) 
+# check-vars $(OLD_ICU_BUILD)/$(XML) $(NEW_ICU_BUILD)/$(XML)
 APIChangeReport.xml:
        echo "Remember to run the non-ascii file detector if you get errors."
        $(ANT) -Dolddir="$(OLD_ICU_BUILD)/$(XML)" -Dnewdir="$(NEW_ICU_BUILD)/$(XML)" $(ANT_TARGET)_xml
 
 %/doc/xml:     %/Doxyfile
 # don't care what GENERATE_XML is set to previously - set it to yes.
-       @echo running doxyugen .. 
+       @echo running doxygen ..
        ( cd "$*/" && ( (cat ./Doxyfile | grep -v '^GENERATE_') ;  echo 'GENERATE_XML=YES')  | $(DOXYGEN) -  )
        @echo doxygen done in $*
 
index aff0f733d83ddd3db5306de4d0e44caec57267f5..e52636ca123cb049bf92476c7ed2f11a7c804a77 100644 (file)
@@ -1,10 +1,10 @@
 <!--
 /*
 *******************************************************************************
-* Copyright (C) 2006-2011, International Business Machines Corporation and    *
+* Copyright (C) 2006-2013, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
-* This is the ant build file for ICU tools. 
+* This is the ant build file for ICU tools.
 */
 -->
 <project name="release-tools" default="tools" basedir="." >
             source="1.5"
             debug="on" deprecation="off"
             encoding="ascii"/>
-    </target>             
+    </target>
 
     <target name="clean" depends="init" description="remove all build targets">
         <delete dir="${build.dir}"/>
     </target>
 
-    <target name="apireport" depends="tools">    
+    <target name="apireport" depends="tools">
         <java classname="com.ibm.icu.dev.tools.docs.StableAPI" fork="yes" failonerror="true">
-           
+
 <!--
             <arg value = "-DELETEME-newver"/>
             <arg value = "4.6"/>
 -->
-            
-            <arg value = "--olddir"/> 
+
+            <arg value = "--olddir"/>
             <arg value = "${olddir}"/>
-            
+
 <!--
        !! Only need these if you must override. Remove the DELETEME
             <arg value = "-DELETEME-newver"/>
             <arg value = "${newver}"/>
 -->
-            
+
             <arg value = "--newdir"/>
             <arg value = "${newdir}"/>
-            
+
             <arg value = "--cppxslt"/>
             <arg value = "${basedir}/src/com/ibm/icu/dev/tools/docs/dumpAllCppFunc.xslt"/>
-            
+
             <arg value = "--cxslt"/>
             <arg value = "${basedir}/src/com/ibm/icu/dev/tools/docs/dumpAllCFunc.xslt"/>
-            
+
             <arg value = "--reportxslt"/>
             <arg value = "${basedir}/src/com/ibm/icu/dev/tools/docs/genReport.xslt"/>
 
             </classpath>
         </java>
     </target>
-    <target name="apireport_xml" depends="tools">    
+    <target name="apireport_xml" depends="tools">
         <java classname="com.ibm.icu.dev.tools.docs.StableAPI" fork="yes" failonerror="true">
 
 <!--
             <arg value = "-DELETEME-newver"/>
             <arg value = "4.4.1"/>
-    
+
 -->
 
-<!--        
+<!--
             <arg value = "-DELETEME-newver"/>
             <arg value = "4.6"/>
--->            
+-->
 
-            <arg value = "--olddir"/> 
+            <arg value = "--olddir"/>
             <arg value = "${olddir}"/>
-            
+
 <!--
        !! Only need these if you must override. Remove the DELETEME
             <arg value = "-DELETEME-newver"/>
             <arg value = "${newver}"/>
 -->
-            
+
             <arg value = "--newdir"/>
             <arg value = "${newdir}"/>
-            
+
             <arg value = "--cppxslt"/>
             <arg value = "${basedir}/src/com/ibm/icu/dev/tools/docs/dumpAllCppFunc_xml.xslt"/>
-            
+
             <arg value = "--cxslt"/>
             <arg value = "${basedir}/src/com/ibm/icu/dev/tools/docs/dumpAllCFunc_xml.xslt"/>
-            
+
             <arg value = "--reportxslt"/>
-            <arg value = "${basedir}/src/com/ibm/icu/dev/tools/docs/genReport_xml.xslt"/>
-            
+            <arg value = "${basedir}/src/com/ibm/icu/dev/tools/docs/genreport_xml.xslt"/>
+
             <arg value = "--resultfile"/>
             <arg value = "${basedir}/APIChangeReport.xml"/>
 
index 17d2e086b5eef0c35a27183aeb5b5e101457bdde..e15c402f9a583d4a4250acc77577d4d22d65a458 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2011 IBM and Others. All Rights Reserved
+# Copyright (C) 2009-2013 IBM and Others. All Rights Reserved
 
 API Change Report:
 
@@ -12,6 +12,7 @@ Requirements:
      but an older Doxygen may work for the API Change Report.
   - Java JDK 1.5+
   - Apache Ant
+  - Note: if you have trouble with null output, put xalan.jar and xercesImpl.jar from <http://xalan.apache.org/xalan-j/downloads.html#latest-release> into ./lib/
 
 To use the utility:
  1. Put both old and new ICU source trees on your system
index 6d7b00d952ae8654bae2826d6089052354079560..f26322f4fd0e160923d7a88ddb550416b91e65da 100644 (file)
@@ -1,6 +1,6 @@
 /*
  **********************************************************************
- * Copyright (c) 2006-2012, International Business Machines
+ * Copyright (c) 2006-2013, International Business Machines
  * Corporation and others.  All Rights Reserved.
  **********************************************************************
  * Created on 2006-7-24 ?
@@ -344,7 +344,7 @@ public class StableAPI {
                         int min = vers.length>1?Integer.parseInt(vers[1]):0;
                         int micr = vers.length>2?Integer.parseInt(vers[2]):0;
                         int patch = vers.length>3?Integer.parseInt(vers[3]):0;
-                        
+                        System.err.println(" == ["+vers.toString()+"] " + maj + " . " + min + " . " + micr + " . " + patch );
                         if(maj >= 49) {
                             // new scheme: 49 and following. 
                             String truncVersion = "ICU " +maj;
@@ -356,7 +356,7 @@ public class StableAPI {
                                 result = "ICU "+(maj);
                                 System.err.println("    .. " + milestoneOf + " is the release of " + truncVersion);
                             } else {
-                                milestoneOf = " (update "+micr+"."+patch+")";
+                                milestoneOf = " (update #"+(min-1)+": "+result.substring(4)+")";
                                 result = "ICU "+(maj);
                                 System.err.println("    .. " + milestoneOf + " is an update to  " + truncVersion);
                             }