get python ver also on python2

This commit is contained in:
Mario Fetka
2024-05-11 11:39:51 +02:00
parent 92535047da
commit 1eed5a6b1f
49 changed files with 652 additions and 18 deletions

0
spellcheck/config-v6.sh Normal file
View File

10
spellcheck/info-v6.sh Normal file
View 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-v6.sh Normal file
View 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-v6.sh Normal file
View 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

View File

@@ -1,3 +1,3 @@
for file in $(ls *-v4.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v4\.sh/v5\.sh/')"
for file in $(ls *-v5.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
done