eaaf94f63b5079b0fac71ad9e2328c8ec6b262c9
[gregoa/zavai.git] / src / update-polygen-info
1 #!/bin/bash
2
3 TARGET=~/.zavai/polygen-info
4
5 exec > $TARGET
6
7 cd /usr/share/polygen
8 find . -name "*.grm" | sort | while read NAME
9 do
10         TITLE=`polygen -info $NAME | grep ^title: | head -1 | sed -re 's/^[^:]+: *//'`
11         NAME=${NAME:2}
12         NAME=${NAME%.grm}
13         echo "$NAME $TITLE"
14 done