File: stripVttComments.sh

package info (click to toggle)
fonts-cascadia-code 2102.03-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 28,768 kB
  • sloc: python: 1,949; sh: 12; makefile: 6
file content (13 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
TTX_PATH="sources/vtt_data/CascadiaCode.ttx"
SED_SCRIPT='
/\* VTT 6\./d
/\* GUI generated/d
/\* ACT generated/d
'
if ! sed -e "$SED_SCRIPT" < "$TTX_PATH" > "$TTX_PATH.$$"; then
    printf "failed; not replacing ttx source\n" >&2
    exit 1
fi
printf "done.\n" >&2
mv "$TTX_PATH.$$" "$TTX_PATH"