8 lines
180 B
Bash
8 lines
180 B
Bash
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
# Prepares stdin input YAML for gperf consumption
|
||
|
|
|
||
|
|
echo "struct rgb { const char *name; uint8_t red; uint8_t green; uint8_t blue; };"
|
||
|
|
echo "%%"
|
||
|
|
tr -d '[]"' | tr ":" ","
|