You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
387 B
Bash
12 lines
387 B
Bash
#!/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}
|