7 lines
180 B
Bash
Executable file
7 lines
180 B
Bash
Executable file
#!/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 ":" ","
|