3 # Helpful little script that spits out a comma-separated list of
4 # language codes for Qt icons that should be included
5 # in binary bitcoin distributions
12 if len(sys.argv) != 3:
13 sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.argv[0])
18 l1 = set([ re.search(r'qt_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d1, 'qt_*.qm')) ])
19 l2 = set([ re.search(r'bitcoin_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d2, 'bitcoin_*.qm')) ])
21 print ",".join(sorted(l1.intersection(l2)))