File: buildsdf.sh

package info (click to toggle)
libxtc-rats-java 1.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 18,580 kB
  • sloc: java: 288,962; ansic: 20,406; ml: 14,775; makefile: 1,358; cpp: 621; sh: 352; xml: 259; perl: 123
file content (25 lines) | stat: -rw-r--r-- 386 bytes parent folder | download
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
#!/bin/bash

# Print help message.

echo "Build SDF parser tables, v. 1.0, (C) 2006 Robert Grimm"
echo

# Configuration.

PACK_SDF=pack-sdf
SDF2TABLE=sdf2table
TABLES="Java14 Java15"

# Do the work.

for NAME in $TABLES
do
    echo "Building $NAME.tbl"

    $PACK_SDF -i $NAME.sdf -o $NAME.def
    $SDF2TABLE -m $NAME -i $NAME.def -o $NAME.tbl
    mv $NAME.tbl ../data
done

echo "Done"