get python ver
This commit is contained in:
0
spellcheck/config-v5.sh
Normal file
0
spellcheck/config-v5.sh
Normal file
10
spellcheck/info-v5.sh
Normal file
10
spellcheck/info-v5.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
if [ $SPELL = "Yes" ]; then
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "More infos about the Spellcheck can be found in the" >> ${DBP_INFO}
|
||||
echo "${MYSTIC_DIR}/docs/Spellcheck_README.txt" >> ${DBP_INFO}
|
||||
echo "Also in" >> ${DBP_INFO}
|
||||
echo "${MYSTIC_DIR}/data/dictlist.txt" >> ${DBP_INFO}
|
||||
echo "you can add additional Hunspell compatible dictionaries" >> ${DBP_INFO}
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "==============================================================================================================" >> ${DBP_INFO}
|
||||
fi
|
||||
16
spellcheck/install-v5.sh
Normal file
16
spellcheck/install-v5.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
if [ $SPELL = "Yes" ]; then
|
||||
msg_info "Setting up Spellcheck for ${APP}"
|
||||
apt install -y libhunspell-dev &>/dev/null
|
||||
wget -N http://www.mysticbbs.com/downloads/mystic_spellcheck_v2.zip -O $MSTEMPDIR/mystic_spellcheck_v2.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/mystic_spellcheck_v2 &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/mystic_spellcheck_v2 &>/dev/null
|
||||
pushd $MSTEMPDIR/mystic_spellcheck_v2 &>/dev/null
|
||||
unzip ../mystic_spellcheck_v2.zip &>/dev/null
|
||||
cp dictionary.* ${MYSTIC_DIR}/data/
|
||||
cp wordlist.txt ${MYSTIC_DIR}/data/
|
||||
cp README.txt ${MYSTIC_DIR}/docs/Spellcheck_README.txt
|
||||
echo "; List secondary dicitinoaries in this File" > ${MYSTIC_DIR}/data/dictlist.txt
|
||||
echo "; more details in the Spellcheck_README.txt" >> ${MYSTIC_DIR}/data/dictlist.txt
|
||||
popd &>/dev/null
|
||||
msg_ok "Setting up Spellcheck for ${APP}"
|
||||
fi
|
||||
8
spellcheck/prompt-v5.sh
Normal file
8
spellcheck/prompt-v5.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
SPELL=$(whiptail --title "Spellcheck Support in Mystic" --radiolist --cancel-button Exit-Script "Choose Yes No" 8 58 2 \
|
||||
"Yes" "Add Spellcheck Support" ON \
|
||||
"No" "Don't add Spellcheck Support" OFF \
|
||||
3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Add Spellcheck Support: ${BGN}$SPELL${CL}"
|
||||
fi
|
||||
@@ -1,3 +1,3 @@
|
||||
for file in $(ls *-v3.sh) ; do
|
||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||
for file in $(ls *-v4.sh) ; do
|
||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v4\.sh/v5\.sh/')"
|
||||
done
|
||||
Reference in New Issue
Block a user