mirror of
https://github.com/arsenetar/pelican-red.git
synced 2024-12-08 08:09:01 +00:00
Andrew Senetar
1e38b42edd
Changes output to only one stylesheet, removes uneeded files, renames and trims font files, creates utility script to convert from fontello css file to sass
12 lines
387 B
Bash
Executable File
12 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
SASS_PATH="../static/sass/voltaicideas/pelican-red/"
|
|
INPUT_FILE="${SASS_PATH}pelican-red-codes.css"
|
|
OUTPUT_FILE="${SASS_PATH}_iconList.scss"
|
|
|
|
PREFIX="icon"
|
|
|
|
sed -rn "s/^.${PREFIX}-(.*):before.*'\\\e(.*)'; \}.*/@include i-class('\1','\2'); /p" ${INPUT_FILE} > ${OUTPUT_FILE}
|
|
echo -en '\n\n//Generated on ' >> ${OUTPUT_FILE}
|
|
date -u >> ${OUTPUT_FILE}
|
|
echo '' >> ${OUTPUT_FILE}
|