summaryrefslogtreecommitdiff
path: root/rules/bin/ml_s.sh
blob: 1e7ae6e0222663bf24135a4dde7c086bb0795f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

INDIR=$1
OUTFILE=base.ml_s.part

echo "! model		layout				=	symbols" > $OUTFILE

awk '{ 
  printf "  *		%s			=	pc+%s\n", $1, $2; 
}' < $INDIR/layoutsMapping.lst >> $OUTFILE

awk '{ 
  printf "  *		%s(%s)			=	pc+%s(%s)\n", $1, $2, $3, $4; 
}' < $INDIR/variantsMapping.lst >> $OUTFILE