configure.sh
来自「This is a resource based on j2me embedde」· Shell 代码 · 共 162 行
SH
162 行
## Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version # 2 only, as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License version 2 for more details (a copy is # included at /legal/license.txt). # # You should have received a copy of the GNU General Public License # version 2 along with this work; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA # 02110-1301 USA # # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa # Clara, CA 95054 or visit www.sun.com if you need additional # information or have any questions. ## @(#)configure.sh 1.6 06/10/10###!/bin/bashinit() { CUR_DIR=`pwd` cd ../../../../.. CVM_PREFIX=`pwd` cd $CUR_DIR echo "CVM_PREFIX=$CVM_PREFIX" > Defs.mk}linux_build_flavors() {NAME=`uname`if [ "$NAME" = "Linux" ]then MAKE=make JDK_HOME=/usr/java/jdk1.3else MAKE=gnumake JDK_HOME=/usr/java/jdk1.3ficat << FLAGS >> Defs.mkMAKE=$MAKEJDK_HOME=$JDK_HOMEGCTEST_DIR=\${CVM_PREFIX}/src/share/javavm/test/GCTestCVM_TARGET=$1CDC_BUILDDIR=\${CVM_PREFIX}/build/\${CVM_TARGET}BOOT_CLASSPATH=\${CDC_BUILDDIR}/lib/foundation.jarFLAGS echo "" echo "Select the interested build flavor from the list" while true do echo "(1) CDCOptimized" echo "(2) DebugJVMDI" echo "(3) DebugJVMPI" read build case $build in 1) linux_CDCOptimized break;; 2) linux_DebugJVMDI break;; 3) linux_DebugJVMPI break;; *) echo "Please select 1, 2 or 3" continue;; esac done}solaris_sparc_build_flavors() {cat << FLAGS >>Defs.mkMAKE=gnumakeGCTEST_DIR=\${CVM_PREFIX}/src/share/javavm/test/GCTestCVM_TARGET=solaris-sparcCDC_BUILDDIR=\${CVM_PREFIX}/build/\${CVM_TARGET}BOOT_CLASSPATH=\${CDC_BUILDDIR}/lib/foundation.jarFLAGSsolaris_DevDebugJVMXI}#Set build flags particular for the flavorslinux_CDCOptimized() {cat << FLAGS >> Defs.mkCVM_OPTIMIZED=trueCVM_PRELOAD_LIB=trueFLAGS}linux_DebugJVMDI() {cat << FLAGS >> Defs.mkCVM_DEBUG=trueCVM_JVMDI=trueJ2ME_CLASSLIB=foundationFLAGS}linux_DebugJVMPI() {cat << FLAGS >> Defs.mkCVM_DEBUG=trueCVM_JVMPI=trueJ2ME_CLASSLIB=foundationFLAGS}solaris_DevDebugJVMXI() {cat << FLAGS >> Defs.mkCVM_DEBUG=trueCVM_JVMDI=trueCVM_JVMPI=trueJ2ME_CLASSLIB=foundationFLAGS}#Main program starts hereinitecho ""echo "Select the interested platform from the list"while truedo echo "(1) Linux_i686" echo "(2) Linux_sarm_netwinder" echo "(3) Solaris_sparc" read platform case $platform in "1") linux_build_flavors linux-i686 break;; "2") linux_build_flavors linux-sarm-netwinder break;; "3") solaris_sparc_build_flavors break;; *) echo "Please select 1, 2 or 3" continue;; esacdone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?