5 # Build patched flex, if needed
9 if [[ ! -d "flex-2.5.4" ]]; then
10 tar -xf ..
/distrib_extras
/flex-2.5
.4_patch.
tar.gz
13 .
/configure
--prefix=${localInstall}
18 # Create build subdirectories
21 buildDirs
="api_include api_lib bin lib include man/man3 share/doc"
22 for dir
in ${buildDirs}; do
29 make WITH_FLEXLM
=NOFLEX \
30 ALLIANCE_TOP
=${buildDir} \
31 AVERTEC_TOP
=${buildDir} \
33 AVERTEC_LICENSE
=AVERTEC_DUMMY \
34 AVT_LICENSE_SERVER
=house \
35 AVT_LICENSE_FILE
=27009@house \
36 AVT_COMPILATION_TYPE
=distrib \
37 AVT_DISTRIB_DIR
=${buildDir} \
38 PACKAGING_TOP
=${localInstall} \
39 LEX
=${localInstall}/bin
/flex \
40 JAVA_HOME
=/usr
/lib
/jvm
/default \
41 CFLAGS
="-g -O3" CXXFLAGS
=-"-g -O3" STRIP
=true \
42 SAXON
="java -jar ${buildDir}/../distrib_extras/saxon9.jar"
49 installDir
="`pwd`/install"
51 mkdir
-p ${installDir}/bin
52 mkdir
-p ${installDir}/share
/tasyag
/etc
54 for conf
in avt.slib avttools.dtb Xtas Xyagle trmodel.cfg
; do
55 cp distrib
/share
/etc
/$conf ${installDir}/share
/tasyag
/etc
58 for tool
in avt_shell avtman xtas xyagle ttvdiff ttvren
; do
59 cp distrib
/bin
/${tool} ${installDir}/bin
62 cp -r distrib
/share
/tcl
${installDir}/share
/tasyag
64 echo "AVERTEC_TOP=`pwd`/install/share/tasyag" > "${installDir}/avt_env.sh"
65 echo 'PATH=${AVERTEC_TOP}/tcl:${PATH}' >> "${installDir}/avt_env.sh"
66 echo 'export AVERTEC_TOP
' >> "${installDir}/avt_env.sh"