Skip to content

Commit 7d6cc37

Browse files
megazone87danpovey
authored andcommitted
[build] Add -c (continue) option to wget in tools/Makefile (#3780)
1 parent f1c9ae0 commit 7d6cc37

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

egs/fisher_swbd/s5/local/fisher_train_lms_fsh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export PATH=$PATH:`pwd`/../../../tools/kaldi_lm
3131
echo Downloading and installing the kaldi_lm tools
3232
if [ ! -f kaldi_lm.tar.gz ]; then
3333
wget http://www.danielpovey.com/files/kaldi/kaldi_lm.tar.gz ||
34-
wget http://merlin.fit.vutbr.cz/kaldi/kaldi_lm.tar.gz || exit 1;
34+
wget -c http://merlin.fit.vutbr.cz/kaldi/kaldi_lm.tar.gz || exit 1;
3535
fi
3636
tar -xvzf kaldi_lm.tar.gz || exit 1;
3737
cd kaldi_lm

egs/fisher_swbd/s5/local/swbd1_data_download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ ! -d $SWBD_DIR/transcriptions/swb_ms98_transcriptions ]; then
3636
if [ ! -d swb_ms98_transcriptions ]; then
3737
echo " *** Downloading trascriptions and dictionary ***"
3838
wget http://www.openslr.org/resources/5/switchboard_word_alignments.tar.gz ||
39-
wget http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
39+
wget -c http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
4040
tar -xf switchboard_word_alignments.tar.gz
4141
fi
4242
)

egs/gale_mandarin/s5/local/gale_prep_dict.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cat $dict_dir/vocab-full.txt | grep -v '[a-zA-Z]' | \
4141
if [ ! -f $dict_dir/cmudict/cmudict.0.7a ]; then
4242
echo "--- Downloading CMU dictionary ..."
4343
svn co http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/ $dict_dir/cmudict || \
44-
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
44+
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
4545
fi
4646

4747
if [ ! -f $dict_dir/cmudict/scripts/make_baseform.pl ] ; then

egs/multi_en/s5/local/swbd1_data_download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if [ ! -d $SWBD_DIR/transcriptions/swb_ms98_transcriptions ]; then
4444
if [ ! -d swb_ms98_transcriptions ]; then
4545
echo " *** Downloading trascriptions and dictionary ***"
4646
wget http://www.openslr.org/resources/5/switchboard_word_alignments.tar.gz ||
47-
wget http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
47+
wget -c http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
4848
tar -xf switchboard_word_alignments.tar.gz
4949
fi
5050
)

egs/swbd/s5c/local/swbd1_data_download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ ! -d $SWBD_DIR/transcriptions/swb_ms98_transcriptions ]; then
3636
if [ ! -d swb_ms98_transcriptions ]; then
3737
echo " *** Downloading trascriptions and dictionary ***"
3838
wget http://www.openslr.org/resources/5/switchboard_word_alignments.tar.gz ||
39-
wget http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
39+
wget -c http://www.isip.piconepress.com/projects/switchboard/releases/switchboard_word_alignments.tar.gz
4040
tar -xf switchboard_word_alignments.tar.gz
4141
fi
4242
)

tools/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ openfst-$(OPENFST_VERSION).tar.gz:
9898
cp -p "$(DOWNLOAD_DIR)/openfst-$(OPENFST_VERSION).tar.gz" .; \
9999
else \
100100
$(WGET) -T 10 -t 1 http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-$(OPENFST_VERSION).tar.gz || \
101-
$(WGET) -T 10 -t 3 https://www.openslr.org/resources/2/openfst-$(OPENFST_VERSION).tar.gz; \
101+
$(WGET) -T 10 -t 3 -c https://www.openslr.org/resources/2/openfst-$(OPENFST_VERSION).tar.gz; \
102102
fi
103103

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

149149
.PHONY: cub

0 commit comments

Comments
 (0)