mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
11 lines
206 B
Bash
Executable file
11 lines
206 B
Bash
Executable file
#!/bin/sh
|
|
# $1 name of the variable
|
|
# $2 input path
|
|
|
|
echo "extern const char $1[];"
|
|
printf "const char %s[] = R\"(" "$1"
|
|
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
|
echo "$line"
|
|
done
|
|
echo ")\";"
|
|
|