]> Git Repo - VerusCoin.git/blame - contrib/qt_translations.py
win32: add version info to bitcoind.exe
[VerusCoin.git] / contrib / qt_translations.py
CommitLineData
6be6be2e
GA
1#!/usr/bin/env python
2
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
6
7import glob
8import os
9import re
10import sys
11
12if len(sys.argv) != 3:
13 sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.argv[0])
14
15d1 = sys.argv[1]
16d2 = sys.argv[2]
17
18l1 = set([ re.search(r'qt_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d1, 'qt_*.qm')) ])
19l2 = set([ re.search(r'bitcoin_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d2, 'bitcoin_*.qm')) ])
20
21print ",".join(sorted(l1.intersection(l2)))
22
This page took 0.040597 seconds and 4 git commands to generate.