3 # once upon a time there was a pysol_compile.sh file available for download
4 # from http://www.gophernet.org/projects/pysol_compile.sh, and this tweaked
5 # the source files and created a single compiled python file that could be
6 # used instead of installing the sources properly.
8 # this script attempts to do even less. tweak the source files as needed.
10 # make failure to load the soundserver non-fatal
11 # whitespace is important!
12 sed '/^import pysolsoundserver/s/.*/try:\
13 import pysolsoundserver\
15 pysolsoundserver = None/' < pysolaudio.py
> pysolaudio.py.tmp
16 mv pysolaudio.py.tmp pysolaudio.py
18 # make sure it doesn't try to load the non-existant freecellsolver
19 sed '/^class FreeCellSolverWrapper:/s/.*/pysolfreecellsolver = None\
20 &/' < hint.py
> hint.py.tmp
21 mv hint.py.tmp hint.py
23 # I've tweaked the Makefile to install the sources and to create an even
24 # more # minimal pysol calling script than the original...