OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [classpath/] [scripts/] [japi] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
#!/bin/sh
2
 
3
CLASSPATH_CVS=~/japi/classpath
4
JAPIZE_DIR=~/japitools-0.9
5
FTPROOT=~alpha/pub/gnu/classpath/nightly/tests
6
LOG=/tmp/japi.log
7
export PATH=${PATH}:/usr/java/j2sdk1.4.1/bin
8
 
9
rm -f /tmp/japi.log > /dev/null 2>&1
10
 
11
classpath_checkout ()
12
{
13
  if [ ! -d "${CLASSPATH_CVS}" ]; then
14
    mkdir --parents ${CLASSPATH_CVS}
15
    local dir=`dirname "${CLASSPATH_CVS}"`
16
    cd "${dir}"
17
    cvs -z3 -d :pserver:anoncvs@subversions.gnu.org:/cvsroot/classpath co classpath >> ${LOG} 2>/dev/null
18
    if [ $? -ne 0 ]; then
19
      echo "Error checking out classpath"
20
      exit 1
21
    fi
22
  fi
23
}
24
 
25
classpath_update ()
26
{
27
  cd "${CLASSPATH_CVS}" && cvs update -d -P . >> ${LOG} 2>/dev/null
28
  if [ $? -ne 0 ]; then
29
    echo "Error checking out classpath"
30
    exit 1
31
  fi
32
}
33
 
34
classpath_clean ()
35
{
36
  if [ -d "${CLASSPATH_CVS}/build" ]; then
37
    rm -rf "${CLASSPATH_CVS}/build"
38
  fi
39
#  if [ -d "${CLASSPATH_PREFIX}" ]; then
40
#    rm -rf "${CLASSPATH_PREFIX}"
41
#  fi
42
  mkdir --parents "${CLASSPATH_CVS}/build"
43
#  mkdir --parents "${CLASSPATH_PREFIX}"
44
}
45
 
46
classpath_configure ()
47
{
48
  cd "${CLASSPATH_CVS}"
49
  aclocal >> ${LOG} 2>&1
50
  if [ $? -ne 0 ]; then
51
    echo "Error running aclocal"
52
    exit 1
53
  fi
54
  autoheader >> ${LOG} 2>&1
55
  if [ $? -ne 0 ]; then
56
    echo "Error running autoheader"
57
    exit 1
58
  fi
59
  automake >> ${LOG} 2>&1
60
  if [ $? -ne 0 ]; then
61
    echo "Error running automake"
62
    exit 1
63
  fi
64
  autoconf >> ${LOG} 2>&1
65
  if [ $? -ne 0 ]; then
66
    echo "Error running autoconf"
67
    exit 1
68
  fi
69
  cd "${CLASSPATH_CVS}/build" && ../configure --with-gcj >> ${LOG} 2>&1
70
  if [ $? -ne 0 ]; then
71
    echo "Error configuring"
72
    exit 1
73
  fi
74
}
75
 
76
classpath_build ()
77
{
78
  cd "${CLASSPATH_CVS}/build" && make >> ${LOG} 2>&1
79
  if [ $? -ne 0 ]; then
80
    echo "Error during make"
81
    exit 1
82
  fi
83
}
84
 
85
 
86
japize_classpath ()
87
{
88
  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>&1
89
  if [ $? -ne 0 ]; then
90
    echo "Error running japize"
91
    exit 1
92
  fi
93
  cp -f "${JAPIZE_DIR}/bin/classpath.japi.gz" /tmp
94
}
95
 
96
japicompat_classpath ()
97
{
98
  today=`date`
99
  echo "${today}" > /tmp/classpath-jdk11-compare.txt
100
  cd "${JAPIZE_DIR}/bin" && ./japicompat -q jdk11.japi.gz classpath.japi.gz >> /tmp/classpath-jdk11-compare.txt
101
  if [ $? -ne 0 ]; then
102
    echo "Error running japicompat"
103
    exit 1
104
  fi
105
  echo "${today}" > /tmp/classpath-jdk13-compare.txt
106
  cd "${JAPIZE_DIR}/bin" && ./japicompat -q jdk13.japi.gz classpath.japi.gz >> /tmp/classpath-jdk13-compare.txt
107
  if [ $? -ne 0 ]; then
108
    echo "Error running japicompat"
109
    exit 1
110
  fi
111
}
112
 
113
#--------------------------------------------------------------------
114
# Update Classpath CVS
115
#--------------------------------------------------------------------
116
classpath_checkout
117
classpath_update
118
 
119
#--------------------------------------------------------------------
120
# Build Classpath with GCJ 3.2
121
#--------------------------------------------------------------------
122
classpath_clean
123
classpath_configure
124
classpath_build
125
 
126
#--------------------------------------------------------------------
127
# Run japize on glibj.zip
128
#--------------------------------------------------------------------
129
japize_classpath
130
 
131
#--------------------------------------------------------------------
132
# Run japicompat against jdk13
133
#--------------------------------------------------------------------
134
japicompat_classpath
135
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.