tridactyl/scripts/bodgecss.sh
Nuno Santos 69f21ce91f MacOS build fixes.
- Fix `find` in bodgecss.sh appending an extra /
- Remove bashism from bodgecss.sh which doesn't work in 3.2 (macos
default)
- Remove `-p .` from mktemp which is unnecessary and doesn't exist on macos.
2019-02-22 16:47:17 +01:00

10 lines
250 B
Bash
Executable file

#!/usr/bin/env bash
set -e
imports=$(find src/static/themes -name '*.css'| awk -F"/" '{ printf "@import url('\''../%s/%s/%s'\'');\n", $3, $4, $5 }')
for css in build/static/css/*.css; do
printf '%s\n%s\n' "$imports" "$(cat $css)" > $css
done