From 3d94628e34cf016d19c2e3e2661dc1d41144d03b Mon Sep 17 00:00:00 2001 From: don bright Date: Wed, 11 Jul 2012 19:52:47 -0500 Subject: detect debian version. give advice if too old. diff --git a/scripts/ubuntu-build-dependencies.sh b/scripts/ubuntu-build-dependencies.sh index 912ba80..9c68751 100755 --- a/scripts/ubuntu-build-dependencies.sh +++ b/scripts/ubuntu-build-dependencies.sh @@ -4,6 +4,12 @@ too_old() echo "System version too low. Please try 'old linux' build (see README.md)" } +if [ "`cat /etc/issue | grep 'Debian GNU/Linux 6.0'`" ]; then + too_old +fi +if [ "`cat /etc/issue | grep 'Debian GNU/Linux 5'`" ]; then + too_old +fi if [ "`cat /etc/issue | grep 'Ubunutu 10'`" ]; then too_old fi -- cgit v0.10.1