Add top-level build.sh script and .gitignore
authorgatecat <gatecat@ds0.me>
Mon, 3 Jan 2022 18:36:22 +0000 (18:36 +0000)
committergatecat <gatecat@ds0.me>
Mon, 3 Jan 2022 20:09:46 +0000 (20:09 +0000)
Signed-off-by: gatecat <gatecat@ds0.me>
.gitignore [new file with mode: 0644]
build.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..baf710e
--- /dev/null
@@ -0,0 +1,166 @@
+localinstall/
+install/
+distrib/api_include
+distrib/bin
+distrib/etc
+distrib/include
+distrib/lib
+distrib/obj
+distrib/man
+distrib/share/etc/etc
+distrib/sources/sources
+distrib/sources/api/api/gen_tree_parser.c
+distrib/sources/api/api/gen_tree_parser.h
+distrib/sources/vcd/vcd.tab.c
+distrib/sources/vcd/vcd.tab.h
+distrib/sources/avt/errmsg.c
+distrib/sources/vcd/lex.vcd.c
+distrib/sources/api/api/avtwig/wrapper_lexer.c
+distrib/sources/api/api/avtwig/wrapper_parser.c
+distrib/sources/api/api/avtwig/wrapper_parser.h
+distrib/sources/api/api/gen_library_lexer.c
+distrib/sources/api/api/gen_library_parser.c
+distrib/sources/api/api/gen_library_parser.h
+distrib/sources/api/api/gen_tree_lexer.c
+distrib/sources/api/api/headers.inc
+distrib/sources/eqt/eqt.tab.c
+distrib/sources/eqt/eqt.tab.h
+distrib/sources/eqt/lex.eqt.c
+distrib/sources/mbkedif/parser_lex.c
+distrib/sources/mbkedif/parser_yac.c
+distrib/sources/mbkedif/y.tab.h
+distrib/sources/mbkvhdl/lex.mvl_scomp.c
+distrib/sources/mbkvhdl/mvl_scomp.tab.c
+distrib/sources/mbkvhdl/mvl_scomp.tab.h
+distrib/sources/mbkvrlog/lex.mgl_scomp.cc
+distrib/sources/mbkvrlog/mgl_scomp.tab.c
+distrib/sources/mbkvrlog/mgl_scomp.tab.h
+distrib/sources/beh/beg/beg_gen.tab.c
+distrib/sources/beh/beg/beg_gen.tab.h
+distrib/sources/beh/beg/beg_gen.yy.c
+distrib/sources/behvhdl/vbe_bcomp.tab.c
+distrib/sources/behvhdl/vbe_bcomp.tab.h
+distrib/sources/behvhdl/vbe_bcomp.yy.c
+distrib/sources/behvhdl/vhd_bcomp.tab.c
+distrib/sources/behvhdl/vhd_bcomp.tab.h
+distrib/sources/behvhdl/vhd_bcomp.yy.c
+distrib/sources/behvrlog/bgl_bcomp.tab.c
+distrib/sources/behvrlog/bgl_bcomp.tab.h
+distrib/sources/behvrlog/lex.bgl_bcomp.cc
+distrib/sources/mbkspef/lex.spef.c
+distrib/sources/mbkspef/lex.spef_dnet.c
+distrib/sources/mbkspef/spef.tab.c
+distrib/sources/mbkspef/spef.tab.h
+distrib/sources/mbkspef/spef_dnet.tab.c
+distrib/sources/mbkspef/spef_dnet.tab.h
+distrib/sources/mbkspf/lex.spf.c
+distrib/sources/mbkspf/y.output
+distrib/sources/mbkspf/y.tab.c
+distrib/sources/mbkspf/y.tab.h
+distrib/sources/cns/parser/cnsfiglex.yy.c
+distrib/sources/cns/parser/cnsfigy.tab.c
+distrib/sources/cns/parser/cnsfigy.tab.h
+distrib/sources/cns/parser/tmpl
+distrib/sources/cns/parser/tmpy
+distrib/sources/elp/lex.elp.c
+distrib/sources/elp/y.tab.c
+distrib/sources/elp/y.tab.h
+distrib/sources/inf/inf.tab.c
+distrib/sources/inf/inf.tab.h
+distrib/sources/inf/lex.inf.c
+distrib/sources/tas/bck/lex.sdf.c
+distrib/sources/tas/bck/sdf.tab.c
+distrib/sources/tas/bck/sdf.tab.h
+distrib/sources/tas/lib/lex.lib.c
+distrib/sources/tas/lib/lib.tab.c
+distrib/sources/tas/lib/lib.tab.h
+distrib/sources/tas/mcc/lex.mcc_mod.c
+distrib/sources/tas/mcc/mcc_mod.tab.c
+distrib/sources/tas/mcc/mcc_mod.tab.h
+distrib/sources/tas/stm/lex.stm.c
+distrib/sources/tas/stm/lex.stmmodel.c
+distrib/sources/tas/stm/stm.tab.c
+distrib/sources/tas/stm/stm.tab.h
+distrib/sources/tas/stm/stmmodel.tab.c
+distrib/sources/tas/stm/stmmodel.tab.h
+distrib/sources/tas/tlf/gcf.tab.c
+distrib/sources/tas/tlf/gcf.tab.h
+distrib/sources/tas/tlf/lex.gcf.c
+distrib/sources/tas/tlf/lex.tlf3.c
+distrib/sources/tas/tlf/lex.tlf4.c
+distrib/sources/tas/tlf/tlf3.tab.c
+distrib/sources/tas/tlf/tlf3.tab.h
+distrib/sources/tas/tlf/tlf4.tab.c
+distrib/sources/tas/tlf/tlf4.tab.h
+distrib/sources/tas/ttv/ctx.tab.c
+distrib/sources/tas/ttv/ctx.tab.h
+distrib/sources/tas/ttv/lex.ctx.c
+distrib/sources/tas/tut/lex.libarea.c
+distrib/sources/tas/tut/lex.tlfarea.c
+distrib/sources/tas/tut/lex.txtarea.c
+distrib/sources/tas/tut/libarea.tab.c
+distrib/sources/tas/tut/libarea.tab.h
+distrib/sources/tas/tut/tlfarea.tab.c
+distrib/sources/tas/tut/tlfarea.tab.h
+distrib/sources/tas/tut/txtarea.tab.c
+distrib/sources/tas/tut/txtarea.tab.h
+distrib/sources/tas/val/COMPIL
+distrib/sources/yagle/slib/lex.slib.c
+distrib/sources/yagle/slib/slib.tab.c
+distrib/sources/yagle/slib/slib.tab.h
+distrib/sources/yagle/xyagle/default_corresp.c
+distrib/sources/yagle/xyagle/default_slib.c
+distrib/sources/api/ams/ams_API_l.c
+distrib/sources/api/ams/ams_API_wrap.c
+distrib/sources/api/api/subdir_license
+distrib/sources/api/beg/beg_API_correspondance_l.c
+distrib/sources/api/beg/beg_API_l.c
+distrib/sources/api/beg/beg_API_wrap.c
+distrib/sources/api/cns/cns_API_l.c
+distrib/sources/api/cns/cns_API_wrap.c
+distrib/sources/api/ctk/ctk_API_l.c
+distrib/sources/api/ctk/ctk_API_wrap.c
+distrib/sources/api/ctk/ctk_base_l.c
+distrib/sources/api/ctk/ctk_default_actions_l.c
+distrib/sources/api/ctk/ctk_signals_l.c
+distrib/sources/api/database/database_API_wrap.c
+distrib/sources/api/database/database_l.c
+distrib/sources/api/fcl/fcl_API_wrap.c
+distrib/sources/api/gen_builtins/gen_builtin_functions_wrap.c
+distrib/sources/api/genius/gen_API_l.c
+distrib/sources/api/genius/gen_API_netlist_l.c
+distrib/sources/api/genius/gen_API_recursive_gns_l.c
+distrib/sources/api/genius/gen_API_signals_l.c
+distrib/sources/api/genius/gen_API_wrap.c
+distrib/sources/api/hierPathExtract/hpe_API_l.c
+distrib/sources/api/hierPathExtract/hpe_API_wrap.c
+distrib/sources/api/inf/inf_API_wrap.c
+distrib/sources/api/lbt/lbt_API_wrap.c
+distrib/sources/api/mbk/mbk_API_l.c
+distrib/sources/api/mbk/mbk_API_wrap.c
+distrib/sources/api/mbkspice/spi_API_wrap.c
+distrib/sources/api/power/power_API_util_l.c
+distrib/sources/api/sim/sim_API_dump_l.c
+distrib/sources/api/sim/sim_API_elp_l.c
+distrib/sources/api/sim/sim_API_extract_l.c
+distrib/sources/api/sim/sim_API_highlevel_l.c
+distrib/sources/api/sim/sim_API_lowlevel_l.c
+distrib/sources/api/sim/sim_API_wrap.c
+distrib/sources/api/stb/stb_API_display_l.c
+distrib/sources/api/stb/stb_API_l.c
+distrib/sources/api/stb/stb_API_wrap.c
+distrib/sources/api/stm/stm_API_wrap.c
+distrib/sources/api/tcl/avt_API_wrap.c
+distrib/sources/api/tcl/avt_static_TCL_wrap.c
+distrib/sources/api/trc/trc_API_wrap.c
+distrib/sources/api/ttv/ttv_API_cns_link_l.c
+distrib/sources/api/ttv/ttv_API_falsecheckpaths_l.c
+distrib/sources/api/ttv/ttv_API_fig_l.c
+distrib/sources/api/ttv/ttv_API_greybox_l.c
+distrib/sources/api/ttv/ttv_API_lines_l.c
+distrib/sources/api/ttv/ttv_API_path_functions_l.c
+distrib/sources/api/ttv/ttv_API_path_simulation_l.c
+distrib/sources/api/ttv/ttv_API_reports_l.c
+distrib/sources/api/ttv/ttv_API_util_l.c
+distrib/sources/api/ttv/ttv_API_wrap.c
+*.o
diff --git a/build.sh b/build.sh
new file mode 100755 (executable)
index 0000000..c673269
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,66 @@
+#!/usr/bin/env bash
+set -ex
+
+
+# Build patched flex, if needed
+mkdir -p localinstall
+pushd localinstall
+localInstall="`pwd`"
+if [[ ! -d "flex-2.5.4" ]]; then
+       tar -xf ../distrib_extras/flex-2.5.4_patch.tar.gz
+fi
+pushd flex-2.5.4
+./configure --prefix=${localInstall}
+make install
+popd
+popd
+
+# Create build subdirectories
+pushd distrib
+buildDir="`pwd`"
+buildDirs="api_include api_lib bin lib include man/man3 share/doc"
+for dir in ${buildDirs}; do
+       mkdir -p ${dir}
+done
+ln -fs sources obj
+ln -fs share/etc etc
+
+pushd obj
+make WITH_FLEXLM=NOFLEX            \
+  ALLIANCE_TOP=${buildDir}         \
+  AVERTEC_TOP=${buildDir}          \
+  AVERTEC_OS=Linux                 \
+  AVERTEC_LICENSE=AVERTEC_DUMMY    \
+  AVT_LICENSE_SERVER=house         \
+  AVT_LICENSE_FILE=27009@house     \
+  AVT_COMPILATION_TYPE=distrib     \
+  AVT_DISTRIB_DIR=${buildDir}      \
+  PACKAGING_TOP=${localInstall}    \
+  LEX=${localInstall}/bin/flex     \
+  JAVA_HOME=/usr/lib/jvm/default   \
+  CFLAGS="-g -O3" CXXFLAGS=-"-g -O3" STRIP=true \
+  SAXON="java -jar ${buildDir}/../distrib_extras/saxon9.jar"
+popd
+popd
+
+
+# 'Install'
+mkdir -p install
+installDir="`pwd`/install"
+
+mkdir -p ${installDir}/bin
+mkdir -p ${installDir}/share/tasyag/etc
+
+for conf in avt.slib avttools.dtb Xtas Xyagle trmodel.cfg; do
+  cp distrib/share/etc/$conf ${installDir}/share/tasyag/etc
+done
+
+for tool in avt_shell avtman xtas xyagle ttvdiff ttvren; do
+  cp distrib/bin/${tool} ${installDir}/bin
+done
+
+cp -r distrib/share/tcl ${installDir}/share/tasyag
+
+echo "AVERTEC_TOP=`pwd`/install/share/tasyag" > "${installDir}/avt_env.sh"
+echo 'PATH=${AVERTEC_TOP}/tcl:${PATH}' >> "${installDir}/avt_env.sh"
+echo 'export AVERTEC_TOP' >> "${installDir}/avt_env.sh"