ladybird/Libraries/LibHTML/Scripts/GenerateStyleSheetSource.sh
George Pickering 704f48d7f3 POSIX compliance: (most) shell scripts converted to generic shell
Ports/.port_include.sh, Toolchain/BuildIt.sh, Toolchain/UseIt.sh
have been left largely untouched due to use of Bash-exclusive
functions and variables such as $BASH_SOURCE, pushd and popd.
2019-11-03 09:26:22 +01:00

8 lines
159 B
Bash
Executable file

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