| 1 |
#!/bin/sh |
| 2 |
# SPDX-License-Identifier: 0BSD |
| 3 |
|
| 4 |
printf '#include "iselect.h"\n' |
| 5 |
printf '#pragma GCC diagnostic ignored "-Wcast-qual"\n' |
| 6 |
printf 'const Line %s[] = {\n' "$1" |
| 7 |
sed '1d;s/\\/&&/g;s/^/"/;s/$/"/;s/.*/{.cpLine = (char *)&, .nLine = sizeof(&) - 1},/' |
| 8 |
printf '{0} };\n' |