echo "bash wesnoth0.sh 2018 06 04 This debian 9.3 bash script deletes wesnoth. It requires super-user.";
COMMAND2="wesnoth";
PACKAGE2="wesnoth";
PATH2="usr/share/doc/wesnoth"
USER2="super";
OUT2="Computer";
mkdir -p "${OUT2}";
echo "
${OUT2}/${PACKAGE2}.htm    Operating system used is debian 9.3. Package is ${PACKAGE2}. User is ${USER2}.
" >> ${OUT2}/${PACKAGE2}.htm
# Remove items that might conflict with new install.
# synaptic package manager> mark for complete removal> wesnoth.
rm -r /home/stretch/.local/share/wesnoth
rm -r /home/stretch/.cache/wesnoth
rm -r /home/stretch/.config/wesnoth
rm -r /usr/share/games/wesnoth
# install required packages. Root privledge required.
apt-get install --allow-unauthenticated -y wesnoth rpl;
cp /etc/debian_version ${OUT2}
echo "
debian version    version" >> ${OUT2}/${PACKAGE2}.htm;
wesnoth --version > ${OUT2}/${PATH2}/version.txt
dpkg -L ${PACKAGE2} > ${OUT2}/${PATH2}/installed.txt
man ${PACKAGE2} > ${OUT2}/${PATH2}/manual.txt
echo "
${PACKAGE2}    manual    installed files    version" >> ${OUT2}/${PACKAGE2}.htm;
cp ${PACKAGE2}.sh ${OUT2}/${PATH2}
echo "
The script that created this. ${PACKAGE2}.sh" >> ${OUT2}/${PACKAGE2}.htm;
echo "" >> ${OUT2}/${PACKAGE2}.htm;
echo; echo "${PACKAGE2} end.";