summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-07-12 00:52:47 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-07-12 00:52:47 (GMT)
commit3d94628e34cf016d19c2e3e2661dc1d41144d03b (patch)
tree16c32a28932c07877377936a5b1d0213c7c75c3f
parentbeac717910a0dab457842b3d8dfaa14cfaf46c36 (diff)
detect debian version. give advice if too old.
-rwxr-xr-xscripts/ubuntu-build-dependencies.sh6
1 files changed, 6 insertions, 0 deletions
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
contact: Jan Huwald // Impressum