-# Copyright (C) 2009-2011 IBM and Others. All Rights Reserved
+# Copyright (C) 2009-2013 IBM and Others. All Rights Reserved
#
#
#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
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:
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)
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 $*
<!--
/*
*******************************************************************************
-* 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"/>
-# Copyright (C) 2009-2011 IBM and Others. All Rights Reserved
+# Copyright (C) 2009-2013 IBM and Others. All Rights Reserved
API Change Report:
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
/*
**********************************************************************
- * 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 ?
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;
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);
}