mirror of
https://git.disroot.org/eudaimon/Simplewaita.git
synced 2026-03-10 04:21:07 +00:00
Featured finished, ready to merge into master
This commit is contained in:
parent
cf8cc44147
commit
837eb5922f
14 changed files with 845 additions and 285 deletions
|
|
@ -2,4 +2,23 @@
|
|||
|
||||
source variables.sh
|
||||
|
||||
envsubst <_theme_colors.scss >theme_colors_.scss.processed
|
||||
# envsubst <_theme_colors.scss >theme_colors_.scss.processed # not working!
|
||||
|
||||
echo "Variables read; parsing files..."
|
||||
|
||||
for FILE in "_theme_colors.scss" "gtkrc" ; do
|
||||
echo " processing $FILE..."
|
||||
while read -r line ; do
|
||||
while [[ "$line" =~ (\$\{[a-zA-Z_][a-zA-Z_0-9]*\}) ]] ; do
|
||||
LHS=${BASH_REMATCH[1]}
|
||||
RHS="$(eval echo "\"$LHS\"")"
|
||||
line=${line//$LHS/$RHS}
|
||||
done
|
||||
echo "$line"
|
||||
done < "$FILE" > "$FILE.processed"
|
||||
done
|
||||
|
||||
echo "Done; copying processed files"
|
||||
|
||||
cp _theme_colors.scss.processed ../common/_theme_colors.scss
|
||||
cp gtkrc.processed ../../gtk-2.0/gtkrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue