mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
colorless.theme generator didn't work always right - "$1%K-" -> "$1-",
fixed it to output "${1}-" instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@477 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
04c5baf637
commit
c6f949ef6f
@ -142,7 +142,7 @@ for i in $files; do
|
||||
file=`echo "$i"|sed 's@^src/@@'`
|
||||
file=`echo "$file"|sed 's@/module-formats\.c$@@'`
|
||||
echo " \"$file\" = {" >> colorless.theme
|
||||
cat $i | perl -e 'while (<>) { if (/^\W*{\W*"([^"]*)",\W*"([^"]*)".*/) { $key = $1; $value = $2; $value =~ s/%[krgybmpcwKRGYBMPCW01234567]//g; print(" $key = \"$value\";\n"); } }' >> colorless.theme
|
||||
cat $i | perl -e 'while (<>) { if (/^\W*{\W*"([^"]*)",\W*"([^"]*)".*/) { $key = $1; $value = $2; $value =~ s/\$([0-9])(\%.-)/\$\{\1\}\2/g; $value =~ s/%[krgybmpcwKRGYBMPCW01234567]//g; print(" $key = \"$value\";\n"); } }' >> colorless.theme
|
||||
echo " };" >> colorless.theme
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user