Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-hardcoded debian release #1

Open
zenonp opened this issue Nov 4, 2020 · 0 comments
Open

Non-hardcoded debian release #1

zenonp opened this issue Nov 4, 2020 · 0 comments

Comments

@zenonp
Copy link

zenonp commented Nov 4, 2020

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant