mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
generate-css: Prepare for CI usage
[why] The file that would be created in temp/ is probably not needed There is a lot out noise [how] Create the txt file only if we already have a temp/ dir. Make that clear in the final output message. Remove debugging outputs. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
ef8c12e285
commit
61f59453f6
@ -8,7 +8,12 @@ source ./lib/i_all.sh
|
||||
|
||||
output_css_file="../../css/nerd-fonts-generated.css"
|
||||
header_css_file="./css-header.txt"
|
||||
output_cheat_sheet_file="../../temp/nerd-fonts-generated-cheat-sheet.txt"
|
||||
if [ -d "../../temp" ]; then
|
||||
output_cheat_sheet_file="../../temp/nerd-fonts-generated-cheat-sheet.txt"
|
||||
text_gen=" and Cheat Sheet HTML"
|
||||
else
|
||||
output_cheat_sheet_file="/dev/null"
|
||||
fi
|
||||
LINE_PREFIX="# [Nerd Fonts] "
|
||||
version="2.2.2"
|
||||
|
||||
@ -43,9 +48,9 @@ for var in "${!i@}"; do
|
||||
|
||||
#echo "$var=${!var}"
|
||||
|
||||
echo "$glyph_name"
|
||||
echo "$glyph_char"
|
||||
echo "$glyph_code"
|
||||
#echo "$glyph_name"
|
||||
#echo "$glyph_char"
|
||||
#echo "$glyph_code"
|
||||
#printf "%x" "'$glyph_char'"
|
||||
|
||||
# generate css rules
|
||||
@ -72,4 +77,4 @@ for var in "${!i@}"; do
|
||||
|
||||
done
|
||||
|
||||
printf "Generated CSS and Cheat Sheet HTML\\n"
|
||||
printf "Generated CSS${text_gen}\\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user