Open zenonp opened 3 years ago
The piaware builder supports the three latest debian versions. This adds support for all three of them.
--- install-piaware.sh.orig 2020-11-04 16:55:51.362241828 +0200 +++ install-piaware.sh 2020-11-04 17:09:28.592031302 +0200 @@ -1,5 +1,13 @@ #!/bin/bash +DEBV=`sed 's/\..*//' /etc/debian_version` +case $DEBV in + 10) DEB=buster;; + 9) DEB=stretch;; + 8) DEB=jessie;; + *) echo "Debian version unknown or too old, exiting"; exit;; +esac + INSTALL_DIRECTORY=${PWD} echo -e "\e[32mUpdating\e[39m" @@ -16,8 +24,8 @@ git clone http://github.com/flightaware/tcltls-rebuild.git echo -e "\e[32mbuilding tcl-tls package \e[39m" cd ${INSTALL_DIRECTORY}/tcltls-rebuild -./prepare-build.sh buster -cd package-buster +./prepare-build.sh $DEB +cd package-$DEB sudo dpkg-buildpackage -b --no-sign echo -e "\e[32mInstalling tcl-tls package \e[39m" cd ../ @@ -37,8 +45,8 @@ echo -e "\e[32mBuilding the piaware package \e[39m" cd ${INSTALL_DIRECTORY}/piaware_builder -sudo ./sensible-build.sh buster -cd ${INSTALL_DIRECTORY}/piaware_builder/package-buster +sudo ./sensible-build.sh $DEB +cd ${INSTALL_DIRECTORY}/piaware_builder/package-$DEB sudo dpkg-buildpackage -b --no-sign echo -e "\e[32mInstalling piaware package\e[39m"
The piaware builder supports the three latest debian versions. This adds support for all three of them.