* scripts/cs_helpers.pyin: Changed sfftotiff to be defined

depending on @sfftobmp_major_version@ during runtime. This
  switch is made based by a compiletime substitution of
  sfftobmp_major_version. This change avoids problems which the
  old substitution may have cause ('#3' is an extremly short
  replacement pattern).


git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@384 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
htgoebel 2004-12-30 17:44:01 +00:00
parent 57689cd512
commit 0ec7378e77
3 changed files with 19 additions and 17 deletions

View File

@ -1,3 +1,13 @@
2004-12-30 Hartmut Goebel <h.goebel@crazy-compilers.com>
* scripts/cs_helpers.pyin: Changed sfftotiff to be defined
depending on @sfftobmp_major_version@ during runtime. This
switch is made based by a compiletime substitution of
sfftobmp_major_version. This change avoids problems which the
old substitution may have cause ('#3' is an extremly short
replacement pattern).
* scripts/Makefile.am (.pyin.py): Likewise. Remove old
substitutions.
2004-11-28 Gernot Hillier <gernot@hillier.de> 2004-11-28 Gernot Hillier <gernot@hillier.de>
* docs/manual.docbook: update to new features of 0.4.5, mention the * docs/manual.docbook: update to new features of 0.4.5, mention the
mISDN project, mention other binary packages besides SUSE/Debian, mISDN project, mention other binary packages besides SUSE/Debian,

View File

@ -13,18 +13,12 @@ SUBDIRS = waves
capisuitefax: capisuitefax.in capisuitefax: capisuitefax.in
rm -f $@ rm -f $@
sed -e 's,@\PYTHON@,$(PYTHON),g' $< >$@ sed 's,@\PYTHON@,$(PYTHON),g' $< >$@
chmod 755 $@ chmod 755 $@
.pyin.py: .pyin.py:
rm -f $@ rm -f $@
if test $(sfftobmp_major_version) = "2"; then \ sed 's,@sfftobmp_major_version@,$(sfftobmp_major_version),g' $< >$@
sed -e 's,@\pkgsysconfdir@,$(pkgsysconfdir),g' \
-e 's,#2 ,,g' $< >$@ ;\
else \
sed -e 's,@\pkgsysconfdir@,$(pkgsysconfdir),g' \
-e 's,#3 ,,g' $< >$@ ;\
fi
.confin.conf: .confin.conf:
rm -f $@ rm -f $@

View File

@ -16,15 +16,13 @@ from capisuite.voice import sayNumber, getAudio
# Convert sff files to tiff files. This is placed in an extra function # Convert sff files to tiff files. This is placed in an extra function
# because the sfftobmp tool used for this conversion has changed its # because the sfftobmp tool used for this conversion has changed its
# parameters recently. So this function can be changed to fit your needs. # parameters recently.
# Normally, the make environment of CapiSuite should do this automatically if @sfftobmp_major_version@ <= 2:
# but if you change your sfftobmp version after building CapiSuite you have def sff2tif(infile, outfile):
# to adapt this manually. __call('sff to tif', "sfftobmp", "-tif", infile, outfile)
def sff2tif(infile, outfile): else:
# for sfftobmp 2.x: remove the "#2" characters of the following line def sff2tif(infile, outfile):
#2 __call('sff to tif', "sfftobmp", "-tif", infile, outfile) __call('sff to tif', "sfftobmp", "-tif", infile, "-o", outfile)
# for sfftobmp 3.x: remove the "#3" characters of the following line
#3 __call('sff to tif', "sfftobmp", "-tif", infile, "-o", outfile)
# Note: readConfig is now imported from capisuite.config # Note: readConfig is now imported from capisuite.config