1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:37:35 +00:00

LibWeb: Use embed_as_string_view() for style sheet source generation

This commit is contained in:
Sam Atkins 2023-08-23 21:17:49 +01:00 committed by Sam Atkins
parent af4642c826
commit abba6f7b54
2 changed files with 18 additions and 44 deletions

View file

@ -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 "}"