File: makeall.sh

package info (click to toggle)
libgroboutils-java 5-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,496 kB
  • sloc: java: 59,880; xml: 12,762; sh: 377; perl: 104; makefile: 20
file content (81 lines) | stat: -rw-r--r-- 3,047 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash

echo "Started build: `date`"

_ARGS="$*"

# Modify these settings for your personal environment,
# although it is recommended that you use these paths.
_MEM_SIZE=128m
#JDK_11=/usr/java/jdk1.1
#JDK_12=/usr/java/jdk1.2
JDK_13=/usr/java/jdk1.3
JDK_14=/usr/java/jdk1.4


#JDK_11_maxmem=-mx$_MEM_SIZE
#JDK_12_maxmem=-Xmx$_MEM_SIZE
JDK_13_maxmem=-Xmx$_MEM_SIZE
JDK_14_maxmem=-Xmx$_MEM_SIZE


# Set to JDK 1.4 so that all projects will be cleaned up
export JAVA_HOME=$JDK_14
export ANT_OPTS=$JDK_14_maxmem
./make.sh clean $_ARGS || exit 1

# Sun doesn't support 1.1 on Linux, so this is an optional step
# but cygwin can also be used!
#if [ -f $JDK_11/bin/java -o -f $JDK_11/bin/java.exe ]; then
#  echo "======================================================================="
#  echo "======================================================================="
#  echo "=====  JDK 1.1  ====="
#  echo "======================================================================="
#  echo "======================================================================="
#  export JAVA_HOME=$JDK_11
#  export ANT_OPTS=$JDK_11_maxmem
#  ./make.sh main || exit 1
#else
#  echo "---- Skipping JDK 1.1 ----"
#fi

if [ -f $JDK_12/bin/java -o -f $JDK_12/bin/java.exe ]; then
  if [ $(uname) != Linux ]; then
    # The Linux version of JDK 1.2 doesn't work with the thread queue
    # correctly.
    echo "======================================================================="
    echo "======================================================================="
    echo "=====  JDK 1.2  ====="
    echo "======================================================================="
    echo "======================================================================="
    export JAVA_HOME=$JDK_12
    export ANT_OPTS=$JDK_12_maxmem
    ./make.sh main $_ARGS || exit 1
  fi
fi

if [ -f $JDK_13/bin/java -o -f $JDK_13/bin/java.exe ]; then
  echo "======================================================================="
  echo "======================================================================="
  echo "=====  JDK 1.3  ====="
  echo "======================================================================="
  echo "======================================================================="
  export JAVA_HOME=$JDK_13
  export ANT_OPTS=$JDK_13_maxmem
  ./make.sh main $_ARGS || exit 1
fi

echo "======================================================================="
echo "======================================================================="
echo "=====  JDK 1.4  ====="
echo "======================================================================="
echo "======================================================================="
# Website construction with JDK 1.4 requires correct bootclasspath setup
# to use the GroboUtils' included Xalan and Xerces processors, not the
# included JDK 1.4 ones.  The "make.sh" script does this correctly.
export JAVA_HOME=$JDK_14
export ANT_OPTS=$JDK_14_maxmem
./make.sh deploy $_ARGS || exit 1


echo "Completed build: `date`"