| 1 | #! /bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | 2> /dev/nullscip-shell filesystem . . `/dev/null`. |
| 4 | |
| 5 | exepath=$(dirnamescip-shell system . . dirname. $0) |
| 6 | strip=$exepath/strip_glyphs.pe |
| 7 | |
| 8 | if [scip-shell system . . `[`. $# -ne 2 ] ; then |
| 9 | echoscip-shell system . . echo. "Usage: $(basenamescip-shell system . . basename. $0) fontfile_in fontfile_out" |
| 10 | exit 0 |
| 11 | fi |
| 12 | |
| 13 | if [scip-shell system . . `[`. ! -x "$strip" ] ; then |
| 14 | echoscip-shell system . . echo. "Script not found: $strip" |
| 15 | exit 1 |
| 16 | fi |
| 17 | |
| 18 | if [scip-shell system . . `[`. ! -f "$1" ] ; then |
| 19 | echoscip-shell system . . echo. "File does not exist: $1" |
| 20 | exit 1 |
| 21 | fi |
| 22 | if [scip-shell system . . `[`. -z "$2" ] ; then |
| 23 | echoscip-shell system . . echo. "You need to specify the output file" |
| 24 | exit 1 |
| 25 | fi |
| 26 | |
| 27 | ranges="$ranges u2070:u209F" |
| 28 | ranges="$ranges u2190:u21FF" |
| 29 | ranges="$ranges uF0031:uF15B2" |
| 30 | |
| 31 | $strip $1 $2 $ranges |