File: make_drc_lvs_doc.sh

package info (click to toggle)
klayout 0.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292,204 kB
  • sloc: cpp: 2,068,428; ruby: 47,823; xml: 26,924; python: 14,404; sh: 1,812; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (33 lines) | stat: -rwxr-xr-x 809 bytes parent folder | download | duplicates (2)
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
#!/bin/bash -e

# Generates LVS and DRC documentation
#
# Run this script from a valid build below the repository root, e.g.
# <repo-root>/build-debug. It needs to have a "klayout" binary in 
# current directory.

inst=$(realpath $(dirname $0))
scripts=${inst}/drc_lvs_doc
ld=$(realpath .)

bin="$ld/klayout"

export LD_LIBRARY_PATH=$ld
export KLAYOUT_HOME=/dev/null

doc_src=../src/doc/doc
if ! [ -e $doc_src ]; then
  echo "*** ERROR: missing doc sources ($doc_src) - did you run the script from the build folder below the source tree?"
  exit 1
fi

if ! [ -e $bin ]; then
  echo "*** ERROR: missing klayout binary ($bin) - did you run the script from the build folder?"
  exit 1
fi

cd $inst/..

$bin -z -r ${scripts}/create_drc_samples.rb -t -c ${scripts}/klayoutrc_drc_samples
${scripts}/extract_doc.rb