Skip to content

Commit

Permalink
[build] Add -c (continue) option to wget in tools/Makefile (#3780)
Browse files Browse the repository at this point in the history
  • Loading branch information
megazone87 authored and danpovey committed Dec 20, 2019
1 parent f1c9ae0 commit 7d6cc37
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion egs/fisher_swbd/s5/local/fisher_train_lms_fsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export PATH=$PATH:`pwd`/../../../tools/kaldi_lm
echo Downloading and installing the kaldi_lm tools
if [ ! -f kaldi_lm.tar.gz ]; then
wget http://www.danielpovey.com/files/kaldi/kaldi_lm.tar.gz ||
wget http://merlin.fit.vutbr.cz/kaldi/kaldi_lm.tar.gz || exit 1;
wget -c http://merlin.fit.vutbr.cz/kaldi/kaldi_lm.tar.gz || exit 1;
fi
tar -xvzf kaldi_lm.tar.gz || exit 1;
cd kaldi_lm
Expand Down
2 changes: 1 addition & 1 deletion egs/fisher_swbd/s5/local/swbd1_data_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [ ! -d $SWBD_DIR/transcriptions/swb_ms98_transcriptions ]; then
if [ ! -d swb_ms98_transcriptions ]; then
echo " *** Downloading trascriptions and dictionary ***"
wget http://www.openslr.org/resources/5/switchboard_word_alignments.tar.gz ||
wget http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
wget -c http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
tar -xf switchboard_word_alignments.tar.gz
fi
)
Expand Down
2 changes: 1 addition & 1 deletion egs/gale_mandarin/s5/local/gale_prep_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cat $dict_dir/vocab-full.txt | grep -v '[a-zA-Z]' | \
if [ ! -f $dict_dir/cmudict/cmudict.0.7a ]; then
echo "--- Downloading CMU dictionary ..."
svn co http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/ $dict_dir/cmudict || \
wget -e robots=off -r -np -nH --cut-dirs=4 -R index.html http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/ -P $dict_dir || exit 1
wget -c -e robots=off -r -np -nH --cut-dirs=4 -R index.html http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/ -P $dict_dir || exit 1
fi

if [ ! -f $dict_dir/cmudict/scripts/make_baseform.pl ] ; then
Expand Down
2 changes: 1 addition & 1 deletion egs/multi_en/s5/local/swbd1_data_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ ! -d $SWBD_DIR/transcriptions/swb_ms98_transcriptions ]; then
if [ ! -d swb_ms98_transcriptions ]; then
echo " *** Downloading trascriptions and dictionary ***"
wget http://www.openslr.org/resources/5/switchboard_word_alignments.tar.gz ||
wget http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
wget -c http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
tar -xf switchboard_word_alignments.tar.gz
fi
)
Expand Down
2 changes: 1 addition & 1 deletion egs/swbd/s5c/local/swbd1_data_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [ ! -d $SWBD_DIR/transcriptions/swb_ms98_transcriptions ]; then
if [ ! -d swb_ms98_transcriptions ]; then
echo " *** Downloading trascriptions and dictionary ***"
wget http://www.openslr.org/resources/5/switchboard_word_alignments.tar.gz ||
wget http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
wget -c http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
tar -xf switchboard_word_alignments.tar.gz
fi
)
Expand Down
4 changes: 2 additions & 2 deletions tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ openfst-$(OPENFST_VERSION).tar.gz:
cp -p "$(DOWNLOAD_DIR)/openfst-$(OPENFST_VERSION).tar.gz" .; \
else \
$(WGET) -T 10 -t 1 http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-$(OPENFST_VERSION).tar.gz || \
$(WGET) -T 10 -t 3 https://www.openslr.org/resources/2/openfst-$(OPENFST_VERSION).tar.gz; \
$(WGET) -T 10 -t 3 -c https://www.openslr.org/resources/2/openfst-$(OPENFST_VERSION).tar.gz; \
fi

sclite: sclite_compiled
Expand Down Expand Up @@ -143,7 +143,7 @@ sph2pipe_$(SPH2PIPE_VERSION).tar.gz:
cp -p "$(DOWNLOAD_DIR)/sph2pipe_$(SPH2PIPE_VERSION).tar.gz" .; \
else \
$(WGET) -T 10 -t 3 https://www.openslr.org/resources/3/sph2pipe_$(SPH2PIPE_VERSION).tar.gz || \
$(WGET) -T 10 https://sourceforge.net/projects/kaldi/files/sph2pipe_$(SPH2PIPE_VERSION).tar.gz; \
$(WGET) -T 10 -c https://sourceforge.net/projects/kaldi/files/sph2pipe_$(SPH2PIPE_VERSION).tar.gz; \
fi

.PHONY: cub
Expand Down

0 comments on commit 7d6cc37

Please sign in to comment.