echo "bash wesnoth1.sh 2018 06 04 This debian 9.3 bash script edits a wesnoth campain. It requires super-user."; COMMAND2="wesnoth"; PACKAGE2="wesnoth"; PATH2="usr/share/doc/wesnoth" PACKAGE3="wesnoth-1.12-httt" PATH3="usr/share/games/wesnoth/1.12/data/campaigns/Heir_To_The_Throne/scenarios"; # PATH3="usr/share/games/wesnoth/1.12/locale"; FILE2="24_Battle_for_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 PACKAGE2="wesnoth"; PACKAGE3="wesnoth-1.12-httt" PATH2="usr/share/games/wesnoth/1.12/data/campaigns/Heir_To_The_Throne/scenarios"; FILE2="24_Battle_for_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; echo "define paths."; # preferences=/home/stretch/.config/wesnoth # Data_directory=/usr/share/games/wesnoth/1.12 # User_configuration_directory=/home/stretch/.config/wesnoth # User_data_directory=/home/stretch/.local/share/wesnoth/1.12 # Cache_directory=/home/stretch/.cache/wesnoth chmod -R a+rwx /${PATH2}/${FILE2}.cfg rpl -q "next_scenario=25_HttT_Epilogue" "next_scenario=01_The_Elves_Besieged" /${PATH2}/${FILE2}.cfg rpl -q "carryover_report=no" "" /${PATH2}/${FILE2}.cfg rpl -q "save=no" "" /${PATH2}/${FILE2}.cfg PATH2="usr/share/doc/povray/examples" mkdir -p ${OUT2}/${PATH2} cp /etc/debian_version ${OUT2} echo "
debian version    version" >> ${OUT2}/${PACKAGE2}.htm; 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. dpkg -L wesnoth > Lwesnoth /usr/share/doc/wesnoth dpkg -L wesnoth-1.12-httt > Lwesnoth-1.12-httt $ /usr/share/doc/wesnoth-1.12-httt # /usr/share/games/wesnoth/1.12/data/campaigns/Heir_To_The_Throne