diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-12-21 23:23:33 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-12-21 23:23:33 (GMT) |
commit | 0f72b116c5ae5602f708fbd16a815bde995dd9d5 (patch) | |
tree | c70dc3cbc59d2d205627cd0e7f43a39eef4ad4d8 /scripts | |
parent | fac239c0a2de02414d4fe7a96305d0ae47557c67 (diff) |
deal with unknown system type better. remove 'tested on' messages
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-dependencies.sh | 7 | ||||
-rwxr-xr-x | scripts/uni-get-dependencies.sh | 19 |
2 files changed, 15 insertions, 11 deletions
diff --git a/scripts/check-dependencies.sh b/scripts/check-dependencies.sh index 29ed100..e1afba5 100755 --- a/scripts/check-dependencies.sh +++ b/scripts/check-dependencies.sh @@ -18,7 +18,6 @@ # funcname_abbreviated_tmp. Local vars are not used for portability. # # todo -# look in /usr/local/ on linux # if /usr/ and /usr/local/ on linux both hit, throw an error # fallback- pkgconfig --exists, then --modversion # fallback2 - pkg manager @@ -588,17 +587,17 @@ check_old_local() liblist="libboost libopencsg libCGAL libglew" for i in $header_list $liblist; do if [ -e /usr/local/include/$i ]; then - echo "Warning: you have a copy of " $i " under /usr/local/include" + echo "Warning: you have a copy of "$i" under /usr/local/include" warnon=1 fi if [ -e /usr/local/lib/$i ]; then - echo "Warning: you have a copy of " $i " under /usr/local/lib" + echo "Warning: you have a copy of "$i" under /usr/local/lib" warnon=1 fi done fi if [ $warnon ]; then - echo "Please verify your local copies don't conflict with the system" + echo "Please verify these local copies don't conflict with the system" fi } diff --git a/scripts/uni-get-dependencies.sh b/scripts/uni-get-dependencies.sh index 1832881..cb03563 100755 --- a/scripts/uni-get-dependencies.sh +++ b/scripts/uni-get-dependencies.sh @@ -1,16 +1,17 @@ # auto-install dependency packages using the systems package manager. # after running this, run ./script/check-dependencies.sh. see README.md +# +# this assumes you have sudo installed or are running as root. +# get_fedora_deps() { - echo "Tested on Fedora 17" sudo yum install qt-devel bison flex eigen2-devel \ boost-devel mpfr-devel gmp-devel glew-devel CGAL-devel gcc pkgconfig git } get_freebsd_deps() { - echo "Tested on FreeBSD 9" pkg_add -r bison boost-libs cmake git bash eigen2 flex gmake gmp mpfr \ xorg libGLU libXmu libXi xorg-vfbserver glew \ qt4-corelib qt4-gui qt4-moc qt4-opengl qt4-qmake qt4-rcc qt4-uic \ @@ -19,14 +20,12 @@ get_freebsd_deps() get_netbsd_deps() { - echo tested on netbsd 6 sudo pkgin install bison boost cmake git bash eigen flex gmake gmp mpfr \ qt4 glew cgal opencsg modular-xorg } get_opensuse_deps() { - echo tested on opensuse 12 sudo zypper install libeigen2-devel mpfr-devel gmp-devel boost-devel \ libqt4-devel glew-devel cmake git bison flex cgal-devel opencsg-devel } @@ -54,6 +53,11 @@ get_debian_deps() } +unknown() +{ + echo "Unknown system type. Please install the dependency packages listed" + echo "in README.md using your system's package manager." +} if [ -e /etc/issue ]; then if [ "`grep -i ubuntu /etc/issue`" ]; then @@ -64,17 +68,18 @@ if [ -e /etc/issue ]; then get_opensuse_deps elif [ "`grep -i fedora /etc/issue`" ]; then get_fedora_deps - elif [ "`grep -i redhat /etc/issue`" ]; then + elif [ "`grep -i red.hat /etc/issue`" ]; then get_fedora_deps elif [ "`grep -i mageia /etc/issue`" ]; then get_mageia_deps + else + unknown fi elif [ "`uname | grep -i freebsd `" ]; then get_freebsd_deps elif [ "`uname | grep -i netbsd`" ]; then get_netbsd_deps else - echo "Unknown system type. Please install the dependency packages listed" - echo "in README.md using your system's package manager." + unknown fi |