Skip to content

Commit

Permalink
drop osdn.net neologd#91
Browse files Browse the repository at this point in the history
  • Loading branch information
yokomotod authored and phoepsilonix committed Oct 12, 2024
1 parent 6be8dc7 commit d2ddf2f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions libexec/make-mecab-ipadic-neologd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ NEOLOGD_DIC_NAME=mecab-ipadic-2.7.0-20070801-neologd-${YMD}

if [ ! -e ${BASEDIR}/../build/${ORG_DIC_NAME}.tar.gz ]; then
DIST_SITE_URL_LIST=()
DIST_SITE_URL_LIST[0]="https://ja.osdn.net"
DIST_SITE_URL_LIST[1]="https://drive.google.com"
DIST_SITE_URL_LIST[2]="https://sourceforge.net"
DIST_SITE_URL_LIST[0]="https://drive.google.com"
DIST_SITE_URL_LIST[1]="https://sourceforge.net"

IS_NETWORK_ONLINE=0
for (( I = 0; I < ${#DIST_SITE_URL_LIST[@]}; ++I ))
Expand All @@ -78,12 +77,10 @@ if [ ! -e ${BASEDIR}/../build/${ORG_DIC_NAME}.tar.gz ]; then
fi

ORG_DIC_URL_LIST=()
# download from ja.osdn.net
ORG_DIC_URL_LIST[0]="https://ja.osdn.net/frs/g_redir.php?m=kent&f=mecab%2Fmecab-ipadic%2F2.7.0-20070801%2F${ORG_DIC_NAME}.tar.gz"
# download from google drive
ORG_DIC_URL_LIST[1]="https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM"
ORG_DIC_URL_LIST[0]="https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM"
# download from sourceforge
ORG_DIC_URL_LIST[2]="https://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz/download?use_mirror=autoselect#"
ORG_DIC_URL_LIST[1]="https://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz/download?use_mirror=autoselect#"
for (( I = 0; I < ${#ORG_DIC_URL_LIST[@]}; ++I ))
do
echo "$ECHO_PREFIX Try to download from ${ORG_DIC_URL_LIST[${I}]}"
Expand Down

0 comments on commit d2ddf2f

Please sign in to comment.