mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:37:44 +00:00
LibWeb: Use embed_as_string_view() for style sheet source generation
This commit is contained in:
parent
af4642c826
commit
abba6f7b54
2 changed files with 18 additions and 44 deletions
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "#include <AK/StringView.h>"
|
||||
echo "namespace Web::CSS {"
|
||||
echo "extern StringView $1;"
|
||||
echo "StringView $1 = \"\\"
|
||||
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
||||
echo "$line""\\" | sed 's/"/\\\"/g'
|
||||
done
|
||||
echo "\"sv;"
|
||||
echo "}"
|
Loading…
Add table
Add a link
Reference in a new issue