|
@ -8,7 +8,7 @@ import glob |
|
|
import re |
|
|
import re |
|
|
import json |
|
|
import json |
|
|
import locale |
|
|
import locale |
|
|
import titlesort |
|
|
import title_sort |
|
|
|
|
|
|
|
|
def matchRegexp(reg, iterable): |
|
|
def matchRegexp(reg, iterable): |
|
|
return [ m.group(1) for m in (reg.match(l) for l in iterable) if m ] |
|
|
return [ m.group(1) for m in (reg.match(l) for l in iterable) if m ] |
|
@ -96,8 +96,8 @@ def makeTexFile(sb, output): |
|
|
# output songslist |
|
|
# output songslist |
|
|
if songs == "all": |
|
|
if songs == "all": |
|
|
songs = map(lambda x: x[6:], glob.glob('songs/*/*.sg')) |
|
|
songs = map(lambda x: x[6:], glob.glob('songs/*/*.sg')) |
|
|
songs.sort(key=title_sort.sortkey) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
songs.sort(key=title_sort.sortkey) |
|
|
if len(songs) > 0: |
|
|
if len(songs) > 0: |
|
|
out.write(formatDefinition('songslist', songslist(songs))) |
|
|
out.write(formatDefinition('songslist', songslist(songs))) |
|
|
out.write('\\makeatother\n') |
|
|
out.write('\\makeatother\n') |
|
|