URL
                    https://opencores.org/ocsvn/scarts/scarts/trunk
                
            Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [classpath/] [scripts/] [japi] - Rev 14
Compare with Previous | Blame | View Log
#!/bin/shCLASSPATH_CVS=~/japi/classpathJAPIZE_DIR=~/japitools-0.9FTPROOT=~alpha/pub/gnu/classpath/nightly/testsLOG=/tmp/japi.logexport PATH=${PATH}:/usr/java/j2sdk1.4.1/binrm -f /tmp/japi.log > /dev/null 2>&1classpath_checkout (){if [ ! -d "${CLASSPATH_CVS}" ]; thenmkdir --parents ${CLASSPATH_CVS}local dir=`dirname "${CLASSPATH_CVS}"`cd "${dir}"cvs -z3 -d :pserver:anoncvs@subversions.gnu.org:/cvsroot/classpath co classpath >> ${LOG} 2>/dev/nullif [ $? -ne 0 ]; thenecho "Error checking out classpath"exit 1fifi}classpath_update (){cd "${CLASSPATH_CVS}" && cvs update -d -P . >> ${LOG} 2>/dev/nullif [ $? -ne 0 ]; thenecho "Error checking out classpath"exit 1fi}classpath_clean (){if [ -d "${CLASSPATH_CVS}/build" ]; thenrm -rf "${CLASSPATH_CVS}/build"fi# if [ -d "${CLASSPATH_PREFIX}" ]; then# rm -rf "${CLASSPATH_PREFIX}"# fimkdir --parents "${CLASSPATH_CVS}/build"# mkdir --parents "${CLASSPATH_PREFIX}"}classpath_configure (){cd "${CLASSPATH_CVS}"aclocal >> ${LOG} 2>&1if [ $? -ne 0 ]; thenecho "Error running aclocal"exit 1fiautoheader >> ${LOG} 2>&1if [ $? -ne 0 ]; thenecho "Error running autoheader"exit 1fiautomake >> ${LOG} 2>&1if [ $? -ne 0 ]; thenecho "Error running automake"exit 1fiautoconf >> ${LOG} 2>&1if [ $? -ne 0 ]; thenecho "Error running autoconf"exit 1ficd "${CLASSPATH_CVS}/build" && ../configure --with-gcj >> ${LOG} 2>&1if [ $? -ne 0 ]; thenecho "Error configuring"exit 1fi}classpath_build (){cd "${CLASSPATH_CVS}/build" && make >> ${LOG} 2>&1if [ $? -ne 0 ]; thenecho "Error during make"exit 1fi}japize_classpath (){cd "${JAPIZE_DIR}/bin" && ./japize as classpath packages "${CLASSPATH_CVS}/build/lib/glibj.zip" +java +javax +org -java.awt.dnd.peer -java.awt.peer -org.apache -org.w3c.dom.css -org.w3c.dom.events -org.w3c.dom.html -org.w3c.dom.stylesheets -org.w3c.dom.traversal -org.w3c.dom.views -java.text.resources >> /tmp/japi.log 2>&1if [ $? -ne 0 ]; thenecho "Error running japize"exit 1ficp -f "${JAPIZE_DIR}/bin/classpath.japi.gz" /tmp}japicompat_classpath (){today=`date`echo "${today}" > /tmp/classpath-jdk11-compare.txtcd "${JAPIZE_DIR}/bin" && ./japicompat -q jdk11.japi.gz classpath.japi.gz >> /tmp/classpath-jdk11-compare.txtif [ $? -ne 0 ]; thenecho "Error running japicompat"exit 1fiecho "${today}" > /tmp/classpath-jdk13-compare.txtcd "${JAPIZE_DIR}/bin" && ./japicompat -q jdk13.japi.gz classpath.japi.gz >> /tmp/classpath-jdk13-compare.txtif [ $? -ne 0 ]; thenecho "Error running japicompat"exit 1fi}#--------------------------------------------------------------------# Update Classpath CVS#--------------------------------------------------------------------classpath_checkoutclasspath_update#--------------------------------------------------------------------# Build Classpath with GCJ 3.2#--------------------------------------------------------------------classpath_cleanclasspath_configureclasspath_build#--------------------------------------------------------------------# Run japize on glibj.zip#--------------------------------------------------------------------japize_classpath#--------------------------------------------------------------------# Run japicompat against jdk13#--------------------------------------------------------------------japicompat_classpath

