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"
48 if [ -z $installDir ];
51 installDir
="`pwd`/install"
52 echo "Not provided install dir, setting to: $installDir"
54 echo "Using provided install dir: $installDir"
59 mkdir
-p ${installDir}/bin
60 mkdir
-p ${installDir}/share
/tasyag
/etc
62 for conf
in avt.slib avttools.dtb Xtas Xyagle trmodel.cfg
; do
63 cp distrib
/share
/etc
/$conf ${installDir}/share
/tasyag
/etc
66 for tool
in avt_shell avtman xtas xyagle ttvdiff ttvren
; do
67 cp distrib
/bin
/${tool} ${installDir}/bin
70 cp -r distrib
/share
/tcl
${installDir}/share
/tasyag
72 # Shell script for exporting the AVERTEC_TOP and PATH vars
73 avtEnvScript
="${installDir}/bin/avt_env.sh"
74 echo "AVERTEC_TOP=`pwd`/distrib/share" > "${avtEnvScript}"
75 echo "PATH=`pwd`/distrib/bin"':${AVERTEC_TOP}/tcl:${PATH}' >> "${avtEnvScript}"
76 echo 'export AVERTEC_TOP
' >> "${avtEnvScript}"