From 8a74db4f3e112be5836c43efb74765fd2da000d3 Mon Sep 17 00:00:00 2001 From: Term Date: Tue, 9 Apr 2002 19:20:09 +0000 Subject: [PATCH] Add checker.sh, which will check the versions for each of the tools required to build E17, and abort if any aren't found. I haven't hooked this into autogen.sh yet, because there's still work to be done. It should really check which version and abort if they're not correct. I actually wrote this a bit ago, when we were fielding a lot of version-based questions, but forgot. ;) SVN revision: 6121 --- checker.sh | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100755 checker.sh diff --git a/checker.sh b/checker.sh new file mode 100755 index 000000000..28a9fda92 --- /dev/null +++ b/checker.sh @@ -0,0 +1,167 @@ +#!/bin/bash +# E17 checker script. Makes sure the user has the required programs, and +# abort if not. +# By Lyle (term) Kempler; same license applies to this as does the source +# code it accompanies. + +# TODO: +# - Make it check the actual version, and abort if too old. +# - Make autogen.sh call it. + +# Base programs. +M4=`which m4` +AUTOMAKE=`which automake` +AUTOCONF=`which autoconf` +LIBTOOL=`which libtool` +GETTEXT=`which gettext` + +# Our libraries. +IMLIB2_CONFIG=`which imlib2-config` +EDB_CONFIG=`which edb-config` +EVAS_CONFIG=`which evas-config` +EFSD_CONFIG=`which efsd-config` +ECORE_CONFIG=`which ecore-config` +EBITS_CONFIG=`which ebits-config` +EWL_CONFIG=`which ewl-config` + +if [ -n "$M4" ] +then + echo -n "m4 : " + $M4 --version +else + echo "No m4 found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$AUTOMAKE" ] +then + echo -n "automake: " + $AUTOMAKE --version | grep automake +else + echo "No automake found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$AUTOCONF" ] +then + echo -n "autoconf: " + $AUTOCONF --version | grep version +else + echo "No autoconf found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$LIBTOOL" ] +then + echo -n "libtool : " + $LIBTOOL --version +else + echo "No libtool found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$GETTEXT" ] +then + echo -n "gettext : " + $GETTEXT --version | grep gettext +else + echo "No gettext found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +echo + +if [ -n "$IMLIB2_CONFIG" ] +then + echo -n "imlib2-config: " + $IMLIB2_CONFIG --version +else + echo "No imlib2-config found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$EDB_CONFIG" ] +then + echo -n "edb-config : " + $EDB_CONFIG --version +else + echo "No edb-config found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$EVAS_CONFIG" ] +then + echo -n "evas-config : " + $EVAS_CONFIG --version +else + echo "No evas-config found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$EFSD_CONFIG" ] +then + echo -n "efsd-config : " + $EFSD_CONFIG --version +else + echo "No efsd-config found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$ECORE_CONFIG" ] +then + echo -n "ecore-config : " + $ECORE_CONFIG --version +else + echo "No ecore-config found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +if [ -n "$EBITS_CONFIG" ] +then + echo -n "ebits-config : " + $EBITS_CONFIG --version +else + echo "No ebits-config found! This is a requirement for building Enlightenment 0.17." + # Information on where to get it goes here. + echo + exit 1 +fi + +#if [ -n "$EWL_CONFIG" ] +#then +# echo -n "ewl-config : " +# $EWL_CONFIG --version +#else +# echo "No ewl-config found! This is a requirement for building Enlightenment 0.17." +# # Information on where to get it goes here. +# echo +# exit 1 +#fi + +if [ "$1" != "autogen" ] +then + echo + echo "All requirements have been met! Happy building." + echo + exit 0 +fi