mirror of
https://github.com/NAStools/zerotierone.git
synced 2024-11-09 07:00:44 -08:00
9 lines
276 B
Bash
Executable File
9 lines
276 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run this file to package the .sql file into a .c file whenever the SQL changes.
|
|
|
|
rm -f schema.sql.c
|
|
echo '#define ZT_NETCONF_SCHEMA_SQL \' >schema.sql.c
|
|
cat schema.sql | sed 's/"/\\"/g' | sed 's/^/"/' | sed 's/$/\\n"\\/' >>schema.sql.c
|
|
echo '""' >>schema.sql.c
|