1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

pre prerelease fixes.

Got make rpm to work again.
This commit is contained in:
Shlomi Fish 2017-11-15 23:27:03 +02:00
parent 76580b7a3f
commit f103cbdcf2
5 changed files with 10 additions and 12 deletions

View file

@ -22,17 +22,17 @@ rpm: all_games_html rules mo
python setup.py bdist_rpm python setup.py bdist_rpm
all_games_html: all_games_html:
./scripts/all_games.py > docs/all_games.html PYTHONPATH=`pwd` ./scripts/all_games.py > docs/all_games.html
rules: rules:
(cd html-src && ./gen-html.py) export PYTHONPATH=`pwd`; (cd html-src && ./gen-html.py)
cp -r html-src/images html-src/html cp -r html-src/images html-src/html
rm -rf data/html rm -rf data/html
mv html-src/html data mv html-src/html data
pot: pot:
./scripts/all_games.py gettext > po/games.pot PYTHONPATH=`pwd` ./scripts/all_games.py gettext > po/games.pot
./scripts/pygettext.py -k n_ --ngettext-keyword ungettext -o po/pysol-1.pot $(PYSOLLIB_FILES) PYTHONPATH=`pwd` ./scripts/pygettext.py -k n_ --ngettext-keyword ungettext -o po/pysol-1.pot $(PYSOLLIB_FILES)
xgettext -L C --keyword=N_ -o po/pysol-2.pot data/glade-translations xgettext -L C --keyword=N_ -o po/pysol-2.pot data/glade-translations
msgcat po/pysol-1.pot po/pysol-2.pot > po/pysol.pot msgcat po/pysol-1.pot po/pysol-2.pot > po/pysol.pot
rm -f po/pysol-1.pot po/pysol-2.pot rm -f po/pysol-1.pot po/pysol-2.pot

View file

@ -16,10 +16,10 @@ pysollib_dir = '../'
__builtin__._ = lambda x: x __builtin__._ = lambda x: x
__builtin__.n_ = lambda x: x __builtin__.n_ = lambda x: x
eval('import pysollib.games') import pysollib.games
eval('import pysollib.games.mahjongg') import pysollib.games.mahjongg
eval('import pysollib.games.ultra') import pysollib.games.ultra
eval('import pysollib.games.special') import pysollib.games.special
try: try:
os.mkdir('html') os.mkdir('html')

View file

@ -1,6 +1,3 @@
#!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
import gettext import gettext
import sys import sys

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
# -*- mode: python; coding: koi8-r; -*- # -*- mode: python; coding: koi8-r; -*-
# #

View file

@ -12,6 +12,7 @@ use String::ShellQuote qw/ shell_quote /;
my %skip = ( my %skip = (
map { $_ => 1 } map { $_ => 1 }
qw( qw(
html-src/gen-html.py
pysollib/games/__init__.py pysollib/games/__init__.py
pysollib/games/mahjongg/__init__.py pysollib/games/mahjongg/__init__.py
pysollib/games/mahjongg/mahjongg1.py pysollib/games/mahjongg/mahjongg1.py