зеркало из https://github.com/mozilla/kaldi.git
add script for smooth sctk-2.4.0 installation under Cygwin
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@2694 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
e7a2e99c5c
Коммит
37f9a83678
|
@ -70,7 +70,7 @@ sclite_tgt: sclite_compiled
|
|||
.PHONY: sclite_compiled
|
||||
sclite_compiled: sctk_patched
|
||||
cd sctk-2.4.0; \
|
||||
$(MAKE) config && $(MAKE) all && $(MAKE) install && $(MAKE) doc
|
||||
{ . ../extras/install_sctk_patched.sh; } && $(MAKE) config && $(MAKE) all && $(MAKE) install && $(MAKE) doc
|
||||
|
||||
.PHONY: sctk_patched
|
||||
sctk_patched: | sctk-2.4.0
|
||||
|
@ -78,7 +78,7 @@ sctk_patched: | sctk-2.4.0
|
|||
for x in src/asclite/core/recording.h src/asclite/core/recording.cpp; do \
|
||||
sed 's/Filter::Filter/::Filter/' $$x > tmpf; mv tmpf $$x; \
|
||||
done;
|
||||
|
||||
|
||||
sctk-2.4.0: sctk-2.4.0-20091110-0958.tar.bz2
|
||||
tar xojf sctk-2.4.0-20091110-0958.tar.bz2
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# A patch for sctk-2.4.0 smooth installation under Cygwin
|
||||
|
||||
os=`uname -a | awk '{printf $NF}'`
|
||||
|
||||
if [ "$os" == "Cygwin" ]
|
||||
then
|
||||
cp src/rfilter1/makefile.in src/rfilter1/makefile.in.orig
|
||||
sed 's/OPTIONS=-DNEED_STRCMP=1/OPTIONS=/g' src/rfilter1/makefile.in > tmpf
|
||||
mv tmpf src/rfilter1/makefile.in
|
||||
fi
|
Загрузка…
Ссылка в новой задаче