1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 15:14:58 +00:00
serenity/Libraries/LibWeb/Scripts/GenerateStyleSheetSource.sh

10 lines
196 B
Bash
Executable file

#!/bin/sh
echo "namespace Web::CSS {"
echo "extern const char $1[];"
echo "const char $1[] = \"\\"
grep -v '^ *#' < "$2" | while IFS= read -r line; do
echo "$line""\\"
done
echo "\";"
echo "}"