-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·78 lines (66 loc) · 1.93 KB
/
install.sh
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
#!/usr/bin/env bash
export TECH_DIR="gpdk045"
export ROOT_DIR="${TECH_DIR}/workspace_setup"
# files to copy from workspace_setup
cp_files=( ".cdsenv.personal"
".cdsinit.personal"
"bag_submodules.yaml" )
# files to link from workspace_setup
ln_files=( "bag_config.yaml"
".cdsenv"
".cdsinit"
".bashrc"
".bashrc_bag"
"cds.lib.core"
".cshrc"
".cshrc_bag"
"models"
".gitignore"
"leBindKeys.il"
"pvtech.lib"
"tutorial_files"
"start_tutorial.sh" )
# user configuration files; copy
for f in "${cp_files[@]}"; do
cp ${ROOT_DIR}/${f} .
git add -f ${f}
done
# standard configuration files; symlink
for f in "${ln_files[@]}"; do
ln -s ${ROOT_DIR}/${f} .
git add -f ${f}
done
# setup .ipython
export CUR_DIR=".ipython/profile_default"
mkdir -p ${CUR_DIR}
ln -s "../../${ROOT_DIR}/ipython_config.py" "${CUR_DIR}/ipython_config.py"
git add -f ${CUR_DIR}/ipython_config.py
# setup gen_libs folder
mkdir gen_libs
touch gen_libs/.gitignore
git add -f gen_libs/.gitignore
# setup cds.lib
echo 'INCLUDE $BAG_WORK_DIR/cds.lib.core' > cds.lib
# link BAG run scripts
ln -s BAG_framework/run_scripts/start_bag_ICADV12d3.il start_bag.il
ln -s BAG_framework/run_scripts/start_bag.sh .
ln -s BAG_framework/run_scripts/virt_server.sh .
ln -s BAG_framework/run_scripts/setup_submodules.py .
git add start_bag.il
git add start_bag.sh
git add virt_server.sh
git add setup_submodules.py
# create empty template_libs.def
touch template_libs.def
git add -f template_libs.def
# link test specifications
ln -s ${TECH_DIR}/specs_test .
git add specs_test
# copy over transistor characterization examples
# cp -r ${TECH_DIR}/specs_mos_char .
# git add specs_mos_char
# cp -r ${TECH_DIR}/scripts_char .
# git add scripts_char
# mkdir data
# cp -r ${TECH_DIR}/mos_data/nch_w4 data/
# cp -r ${TECH_DIR}/mos_data/pch_w4 data/