Michael Foerster on Fri, 13 May 2005 11:52:09 +0200 (CEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

hostapps/toolchecker toolchecker.sh


mogway      05/05/13 11:52:09

  Modified:    toolchecker toolchecker.sh
  Log:
  - add mksquashfs
  - change tabs to whitespace for better output formating
  
  Revision  Changes    Path
  1.2       +29 -18    hostapps/toolchecker/toolchecker.sh
  
  file : http://cvs.tuxbox.org/tuxbox/hostapps/toolchecker/toolchecker.sh?rev=1.2&content-type=text/vnd.viewcvs-markup
  plain: http://cvs.tuxbox.org/tuxbox/hostapps/toolchecker/toolchecker.sh?rev=1.2&content-type=text/plain
  revision graph: http://cvs.tuxbox.org/tuxbox/hostapps/toolchecker/toolchecker.sh?graph=1.2
  diff : http://cvs.tuxbox.org/tuxbox/hostapps/toolchecker/toolchecker.sh.diff?r1=1.1&r2=1.2
  
  Index: toolchecker.sh
  ===================================================================
  RCS file: /cvs/tuxbox/hostapps/toolchecker/toolchecker.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- toolchecker.sh	7 Mar 2005 15:02:45 -0000	1.1
  +++ toolchecker.sh	13 May 2005 09:52:09 -0000	1.2
  @@ -9,7 +9,7 @@
   ### cvs ###
   CVS=`which cvs`
   if ( test -e $CVS ) then
  -	echo "cvs:			"`$CVS --version | $GREP Concurrent | $CUT -f5 -d " "`
  +	echo "cvs:                      "`$CVS --version | $GREP Concurrent | $CUT -f5 -d " "`
   	else
   	echo -e "\033[37;41mcvs nicht installiert\033[37;40m"
   fi;
  @@ -17,7 +17,7 @@
   ### autoconf >= 2.57a ###
   AUTOCONF=`which autoconf`
   if ( test -e $AUTOCONF ) then
  -	echo "autoconf >= 2.57a:	"`$AUTOCONF --version | $GREP "autoconf " | $CUT -f4 -d " "`
  +	echo "autoconf >= 2.57a:        "`$AUTOCONF --version | $GREP "autoconf " | $CUT -f4 -d " "`
   	else
   	echo -e "\033[37;41mautoconf nicht installiert\033[37;40m"
   fi;
  @@ -25,7 +25,7 @@
   ### automake >= 1.7 ###
   AUTOMAKE=`which automake`
   if ( test -e  $AUTOMAKE ) then
  -	echo "automake >= 1.7:   	"`$AUTOMAKE --version | $GREP "automake " | $CUT -f4 -d " "`
  +	echo "automake >= 1.7:          "`$AUTOMAKE --version | $GREP "automake " | $CUT -f4 -d " "`
   	else
   	echo -e "\033[37;41mautomake nicht installiert\033[37;40m"
   fi;
  @@ -33,7 +33,7 @@
   ### libtool >= 1.4.2 ###
   LIBTOOL=`which libtool`
   if ( test -e $LIBTOOL ) then
  -	echo "libtool >= 1.4.2:  	"`$LIBTOOL --version | $GREP "libtool)" | $CUT -f4 -d " "`
  +	echo "libtool >= 1.4.2:         "`$LIBTOOL --version | $GREP "libtool)" | $CUT -f4 -d " "`
   	else
   	echo -e "\033[37;41mlibtool nicht installiert\033[37;40m"
   fi;
  @@ -41,7 +41,7 @@
   ### gettext >= 0.12.1 ###
   GETTEXT=`which gettext`
   if ( test -e $GETTEXT ) then
  -	echo "gettext >= 0.12.1: 	"`$GETTEXT --version | $GREP gettext | $CUT -f4 -d " "`
  +	echo "gettext >= 0.12.1:        "`$GETTEXT --version | $GREP gettext | $CUT -f4 -d " "`
   	else
   	echo -e "\033[37;41mgettext nicht installiert\033[37;40m"
   fi;
  @@ -49,7 +49,7 @@
   ### make >= 3.79 ###
   MAKE=`which make`
   if ( test -e $MAKE ) then
  -	echo "make >= 3.79:	 	"`$MAKE --version | $GREP Make | $CUT -f3 -d " "`
  +	echo "make >= 3.79:             "`$MAKE --version | $GREP Make | $CUT -f3 -d " "`
   	else
   	echo -e "\033[37;41mmake nicht installiert\033[37;40m"
   fi;
  @@ -57,7 +57,7 @@
   ### makeinfo (texinfo) ###
   MAKEINFO=`which makeinfo`
   if ( test -e $MAKEINFO ) then
  -	echo "makeinfo:   	 	"`$MAKEINFO --version | $GREP makeinfo | $CUT -f4 -d " "`
  +	echo "makeinfo:                 "`$MAKEINFO --version | $GREP makeinfo | $CUT -f4 -d " "`
   	else
   	echo -e "\033[37;41mmakeinfo nicht installiert\033[37;40m"
   fi;
  @@ -65,7 +65,7 @@
   ### tar ###
   TAR=`which tar`
   if ( test -e $TAR ) then
  -	echo "tar:        	 	"`$TAR --version | $GREP tar | $CUT -f4 -d " "`
  +	echo "tar:                      "`$TAR --version | $GREP tar | $CUT -f4 -d " "`
   	else
   	echo -e "\033[37;41mtar nicht installiert\033[37;40m"
   fi;
  @@ -73,7 +73,7 @@
   ### bunzip2 (bzip2) ###
   BUNZIP2=`which bunzip2`
   if ( test -e $BUNZIP2 ) then
  -	echo "bunzip2:    	 	"`bunzip2 --help 2> btmp; $GREP Version < btmp | $CUT -c 50-54; rm btmp`
  +	echo "bunzip2:                  "`bunzip2 --help 2> btmp; $GREP Version < btmp | $CUT -c 50-54; rm btmp`
   	else
   	echo -e "\033[37;41mbunzip2 nicht installiert\033[37;40m"
   fi;
  @@ -81,7 +81,7 @@
   ### gunzip (gzip) ###
   GUNZIP=`which gunzip`
   if ( test -e $GUNZIP ) then
  -	echo "gunzip:     	 	"`$GUNZIP --version | $GREP gunzip | $CUT -f2 -d " "`
  +	echo "gunzip:                   "`$GUNZIP --version | $GREP gunzip | $CUT -f2 -d " "`
   	else
   	echo -e "\033[37;41mgunzip nicht installiert\033[37;40m"
   fi;
  @@ -89,7 +89,7 @@
   ### patch ###
   PATCH=`which patch`
   if ( test -e $PATCH ) then
  -	echo "patch:      	 	"`$PATCH --version | $GREP "patch " | $CUT -f2 -d " "`
  +	echo "patch:                    "`$PATCH --version | $GREP "patch " | $CUT -f2 -d " "`
   	else
   	echo -e "\033[37;41mpatch nicht installiert\033[37;40m"
   fi;
  @@ -97,7 +97,7 @@
   ### infocmp (ncurses-bin / ncurses-devel) ###
   INFOCMP=`which infocmp`
   if ( test -e $INFOCMP ) then
  -	echo "infocmp:    	 	"`$INFOCMP -V | $GREP ncurses | $CUT -f2 -d " "`
  +	echo "infocmp:                  "`$INFOCMP -V | $GREP ncurses | $CUT -f2 -d " "`
   	else
   	echo -e "\033[37;41minfocmp nicht installiert\033[37;40m"
   fi;
  @@ -105,7 +105,7 @@
   ### gcc 2.95 or >= 3.0 ###
   GCC=`which gcc`
   if ( test -e $GCC ) then
  -	echo "gcc 2.95 or >= 3.0: 	"`$GCC --version | $GREP gcc | $CUT -f3 -d " "`
  +	echo "gcc 2.95 or >= 3.0:       "`$GCC --version | $GREP gcc | $CUT -f3 -d " "`
   	else
   	echo -e "\033[37;41mgcc nicht installiert\033[37;40m"
   fi;
  @@ -113,7 +113,7 @@
   ### g++ 2.95 or >= 3.0 ###
   CCC=`which g++`
   if ( test -e $CCC ) then
  -	echo "g++ 2.95 or >= 3.0: 	"`$CCC --version | $GREP g++ | $CUT -f3 -d " "`
  +	echo "g++ 2.95 or >= 3.0:       "`$CCC --version | $GREP g++ | $CUT -f3 -d " "`
   	else
   	echo -e "\033[37;41mg++ nicht installiert\033[37;40m"
   fi;
  @@ -121,7 +121,7 @@
   ### flex ###
   FLEX=`which flex`
   if ( test -e $FLEX ) then
  -	echo "flex:       	  	"`$FLEX --version | $GREP flex | $CUT -f2 -d " "`
  +	echo "flex:                     "`$FLEX --version | $GREP flex | $CUT -f2 -d " "`
   	else
   	echo -e "\033[37;41mflex nicht installiert\033[37;40m"
   fi;
  @@ -129,7 +129,7 @@
   ### bison ###
   BISON=`which bison`
   if ( test -e $BISON ) then
  -	echo "bison:      	  	"`$BISON --version | $GREP Bison | $CUT -f4 -d " "`
  +	echo "bison:                    "`$BISON --version | $GREP Bison | $CUT -f4 -d " "`
   	else
   	echo -e "\033[37;41mbison nicht installiert\033[37;40m"
   fi;
  @@ -137,7 +137,7 @@
   ### pkg-config ###
   PKGCONFIG=`which pkg-config`
   if ( test -e $PKGCONFIG ) then
  -	echo "pkg-config: 	  	"`$PKGCONFIG --version | $GREP .`
  +	echo "pkg-config:               "`$PKGCONFIG --version | $GREP .`
   	else
   	echo -e "\033[37;41mpkg-config nicht installiert\033[37;40m"
   fi;
  @@ -145,10 +145,21 @@
   ### wget ###
   WGET=`which wget`
   if ( test -e $WGET ) then
  -	echo "wget:       	  	"`$WGET --version | $GREP Wget | $CUT -f3 -d " "`
  +	echo "wget:                     "`$WGET --version | $GREP Wget | $CUT -f3 -d " "`
   	else
   	echo -e "\033[37;41wget nicht installiert\033[37;40m"
   fi;
   
  +### mksquashfs ###
  +MKSQUASHFS=`which mksquashfs`
  +if ( test -e $MKSQUASHFS)
  +        then
  +        echo "mksquashfs 2.1            "`$MKSQUASHFS -version | $GREP mksquashfs | cut -d" " -f3`
  +        else
  +        echo -e "\033[37;41mksquashfs nicht installiert\033[37;40m"
  +        exit 1
  +fi
  +
  +
   echo ""
   echo ""
  
  
  

-- 
To UNSUBSCRIBE, email to tuxbox-cvs-request@cvs.tuxbox.org
with a subject of "unsubscribe". Trouble? Contact listmaster@cvs.tuxbox.org