GenerateStyleSheetSource.sh 228 B

1234567891011
  1. #!/bin/sh
  2. echo "#include <AK/StringView.h>"
  3. echo "namespace Web::CSS {"
  4. echo "extern StringView $1;"
  5. echo "StringView $1 = \"\\"
  6. grep -v '^ *#' < "$2" | while IFS= read -r line; do
  7. echo "$line""\\"
  8. done
  9. echo "\"sv;"
  10. echo "}"