File: makesim.sh

package info (click to toggle)
qflow 1.1.37-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,028 kB
  • ctags: 1,285
  • sloc: ansic: 6,451; sh: 2,625; csh: 1,780; makefile: 286
file content (34 lines) | stat: -rwxr-xr-x 670 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
34
#!/usr/bin/tcsh -f
#
#  makesim.sh cellname
#
#---------------------------------------------------------------
# Run magic in batch mode to extract and generate a .sim view
# for the argument cellname
#---------------------------------------------------------------

if ($#argv < 1) then
   echo "Usage:  makesim.sh <cellname>"
   exit 1
endif

set magdir=${argv[1]:h}
if ("$magdir" == "$argv[1]") then
   set magdir="."
endif
set cellname=${argv[1]:t:r}

cd $magdir
rm -f ${cellname}.ext
rm -f ${cellname}.sim

/usr/local/bin/magic -dnull -noconsole <<EOF
drc off
box 0 0 0 0
load ${cellname}
extract all
ext2sim
quit -noprompt
EOF

exit 0	;# Return normal exit status