diff --git a/ChangeLog b/ChangeLog index a94d0db..8e86cea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-06 Gernot Hillier + * scripts/cs_helpers.pyin: beautify Hartmut's changes from 2004-12-30 + to make script code more understandable after auto-replacement + * scripts/Makefile.in: fix sed statement + 2005-01-02 Hartmut Goebel * SConstruct: enhanced for supporting SCons 0.96's 'toolpath' feature diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 9fb4cfe..227c7e5 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -18,7 +18,7 @@ capisuitefax: capisuitefax.in .pyin.py: rm -f $@ - sed 's,@sfftobmp_major_version@,$(sfftobmp_major_version),g' $< >$@ + sed 's,@sfftobmp_major_version\@,$(sfftobmp_major_version),g' $< >$@ .confin.conf: rm -f $@ diff --git a/scripts/Makefile.in b/scripts/Makefile.in index c0baec0..380c720 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -552,12 +552,12 @@ uninstall-info: uninstall-info-recursive capisuitefax: capisuitefax.in rm -f $@ - sed -e 's,@\PYTHON@,$(PYTHON),g' $< >$@ + sed 's,@\PYTHON@,$(PYTHON),g' $< >$@ chmod 755 $@ .pyin.py: rm -f $@ - sed 's,@sfftobmp_major_version@,$(sfftobmp_major_version),g' $< >$@ + sed 's,@sfftobmp_major_version\@,$(sfftobmp_major_version),g' $< >$@ .confin.conf: rm -f $@ diff --git a/scripts/cs_helpers.pyin b/scripts/cs_helpers.pyin index b4df8fc..20459db 100644 --- a/scripts/cs_helpers.pyin +++ b/scripts/cs_helpers.pyin @@ -17,7 +17,8 @@ from capisuite.voice import sayNumber, getAudio # Convert sff files to tiff files. This is placed in an extra function # because the sfftobmp tool used for this conversion has changed its # parameters recently. -if @sfftobmp_major_version@ <= 2: +sfftobmp_major_version = @sfftobmp_major_version@ +if sfftobmp_major_version <= 2: def sff2tif(infile, outfile): __call('sff to tif', "sfftobmp", "-tif", infile, outfile) else: