#!/bin/bash # # Update the apt database # echo -e "\r\nUpdating apt database\r\n" sudo apt update # # Update the operating system # echo -e "\r\nUpdating the opearting system\r\n" sudo apt upgrade -y sudo apt full-upgrade -y # # Install fossil if necessary # echo -e "\r\nVerifying fossil installation\r\n" if ! dpkg-query -W fossil &>/dev/null ; then echo -e "\r\nInstalling fossil\r\n" sudo apt install fossil -y fi # # Install build-essential if necessary # echo -e "\r\nVerifying build-essential installation\r\n" if ! dpkg-query -W build-essential &>/dev/null ; then echo -e "\r\nInstalling build-essential\r\n" sudo apt install build-essential -y fi # # Install libraspberrypi-dev if necessary # echo -e "\r\nVerifying libraspberrypi-dev installation\r\n" if ! dpkg-query -W libraspberrypi-dev &>/dev/null ; then echo -e "\r\nInstalling libraspberrypi-dev\r\n" sudo apt install libraspberrypi-dev -y fi # # Install libncurses-dev if necessary # echo -e "\r\nVerifying libncurses-dev installation\r\n" if ! dpkg-query -W libncurses-dev &>/dev/null ; then echo -e "\r\nInstalling libncurses-dev\r\n" sudo apt install libncurses-dev -y fi # # Install perl if necessary # echo -e "\r\nVerifying perl installation\r\n" if ! dpkg-query -W perl &>/dev/null ; then echo -e "\r\nInstalling perl\r\n" sudo apt install perl -y fi # # Install python3-pexpect if necessary # echo -e "\r\nVerifying python3-pexpect installation\r\n" if ! dpkg-query -W python3-pexpect &>/dev/null ; then echo -e "\r\nInstalling python3-pexpect\r\n" sudo apt install python3-pexpect -y fi # # Install python3-yaml if necessary # echo -e "\r\nVerifying python3-yaml installation\r\n" if ! dpkg-query -W python3-yaml &>/dev/null ; then echo -e "\r\nInstalling python3-yaml\r\n" sudo apt install python3-yaml -y fi # # Install time if necessary # echo -e "\r\nVerifying time installation\r\n" if ! dpkg-query -W time &>/dev/null ; then echo -e "\r\nInstalling time\r\n" sudo apt install time -y fi # # Install expect if necessary # echo -e "\r\nVerifying expect installation\r\n" if ! dpkg-query -W expect &>/dev/null ; then echo -e "\r\nInstalling expect\r\n" sudo apt install expect -y fi # # Make sure that the date and time are correct. Change the timezone for your local timezone # sudo timedatectl set-timezone US/Central sudo timedatectl set-ntp on # # Setup the log file # now=`date +"%Y%m%d%H%M"` Logfile=$PWD'/BenchmarkSetupLog_'${now} echo -e "\r\nLogfile: "$Logfile"\r\n" cat /sys/firmware/devicetree/base/model | tee ${Logfile} cat /proc/cpuinfo | tee -a ${Logfile} # # Check out trunk and the cycle-realistic branch # echo -e "\r\nMaking Directories\r\n" | tee -a ${Logfile} mkdir -p ~/museum ~/src/pidp8i/trunk ~/src/pidp8i/pi5 ~/src/pidp8i/pi5-ils2 ~/src/pidp8i/pi5-ils2-cyclerealistic # # Cloning fossil repository # echo -e "\r\nCloniung reposotory\r\n" | tee -a ${Logfile} (/usr/bin/time fossil clone https://tangentsoft.com/pidp8i ~/museum/pidp8i.fossil) 2>&1 | tee -a ${Logfile} # # Get trunk # cd ~/src/pidp8i/trunk echo -e "\r\nGetting trunk\r\n" | tee -a ${Logfile} (/usr/bin/time fossil open ~/museum/pidp8i.fossil) 2>&1 | tee -a ${Logfile} echo -e "\r\nConfiguring trunk for build\r\n" | tee -a ${Logfile} (/usr/bin/time ./configure --prefix=$PWD/pidp8i) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking tools\r\n" | tee -a ${Logfile} (/usr/bin/time tools/mmake) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking install\r\n" | tee -a ${Logfile} (/usr/bin/time sudo make install) 2>&1 | tee -a ${Logfile} # # Get PI5 # cd ~/src/pidp8i/pi5 echo -e "\r\nGetting pi5" | tee -a ${Logfile} fossil open ~/museum/pidp8i.fossil pi5 | tee -a ${Logfile} echo -e "\r\nConfiguring pi5 for build\r\n" | tee -a ${Logfile} (/usr/bin/time ./configure --prefix=$PWD/pidp8i) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking tools\r\n" | tee -a ${Logfile} (/usr/bin/time tools/mmake) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking install\r\n" | tee -a ${Logfile} (/usr/bin/time sudo make install) 2>&1 | tee -a ${Logfile} # # Get pi5-ils2-bookworm # cd ~/src/pidp8i/pi5-ils2 echo -e "\r\nGetting pi5-ils2-bookworm" | tee -a ${Logfile} fossil open ~/museum/pidp8i.fossil pi5-ils2-bookworm | tee -a ${Logfile} echo -e "\r\nConfiguring pi5-ils2-bookworm for build\r\n" | tee -a ${Logfile} (/usr/bin/time ./configure --prefix=$PWD/pidp8i) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking tools\r\n" | tee -a ${Logfile} (/usr/bin/time tools/mmake) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking install\r\n" | tee -a ${Logfile} (/usr/bin/time sudo make install) 2>&1 | tee -a ${Logfile} # # Get pi5-ils2-bworm-cyclerealistic # cd ~/src/pidp8i/pi5-ils2-cyclerealistic echo -e "\r\nGetting pi5-ils2-bworm-cyclerealistic" | tee -a ${Logfile} fossil open ~/museum/pidp8i.fossil pi5-ils2-bworm-cyclerealistic | tee -a ${Logfile} echo -e "\r\nConfiguring pi5-ils2-bworm-cyclerealistic for build\r\n" | tee -a ${Logfile} (/usr/bin/time ./configure --prefix=$PWD/pidp8i) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking tools\r\n" | tee -a ${Logfile} (/usr/bin/time tools/mmake) 2>&1 | tee -a ${Logfile} echo -e "\r\nMaking install\r\n" | tee -a ${Logfile} (/usr/bin/time sudo make install) 2>&1 | tee -a ${Logfile}
--
You received this message because you are subscribed to the Google Groups "PiDP-8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-8+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pidp-8/b77194ae-37b6-4342-abbf-fef15f38f2efn%40googlegroups.com.