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:
parent
76580b7a3f
commit
f103cbdcf2
5 changed files with 10 additions and 12 deletions
8
Makefile
8
Makefile
|
@ -22,17 +22,17 @@ rpm: all_games_html rules mo
|
|||
python setup.py bdist_rpm
|
||||
|
||||
all_games_html:
|
||||
./scripts/all_games.py > docs/all_games.html
|
||||
PYTHONPATH=`pwd` ./scripts/all_games.py > docs/all_games.html
|
||||
|
||||
rules:
|
||||
(cd html-src && ./gen-html.py)
|
||||
export PYTHONPATH=`pwd`; (cd html-src && ./gen-html.py)
|
||||
cp -r html-src/images html-src/html
|
||||
rm -rf data/html
|
||||
mv html-src/html data
|
||||
|
||||
pot:
|
||||
./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/all_games.py gettext > po/games.pot
|
||||
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
|
||||
msgcat po/pysol-1.pot po/pysol-2.pot > po/pysol.pot
|
||||
rm -f po/pysol-1.pot po/pysol-2.pot
|
||||
|
|
|
@ -16,10 +16,10 @@ pysollib_dir = '../'
|
|||
__builtin__._ = lambda x: x
|
||||
__builtin__.n_ = lambda x: x
|
||||
|
||||
eval('import pysollib.games')
|
||||
eval('import pysollib.games.mahjongg')
|
||||
eval('import pysollib.games.ultra')
|
||||
eval('import pysollib.games.special')
|
||||
import pysollib.games
|
||||
import pysollib.games.mahjongg
|
||||
import pysollib.games.ultra
|
||||
import pysollib.games.special
|
||||
|
||||
try:
|
||||
os.mkdir('html')
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- mode: python; coding: utf-8; -*-
|
||||
|
||||
import gettext
|
||||
import sys
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
# -*- mode: python; coding: koi8-r; -*-
|
||||
#
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ use String::ShellQuote qw/ shell_quote /;
|
|||
my %skip = (
|
||||
map { $_ => 1 }
|
||||
qw(
|
||||
html-src/gen-html.py
|
||||
pysollib/games/__init__.py
|
||||
pysollib/games/mahjongg/__init__.py
|
||||
pysollib/games/mahjongg/mahjongg1.py
|
||||
|
|
Loading…
Add table
Reference in a new issue