Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2000 09:19:33 +0200
From:      Ernst de Haan <ernst@jollem.com>
To:        freebsd-java@freebsd.org
Subject:   Re: checkports.sh
Message-ID:  <20000620091933.B2537@c187104187.telekabel.chello.nl>
In-Reply-To: <20000617014249.A76184@c187104187.telekabel.chello.nl>; from ernst@jollem.com on Sat, Jun 17, 2000 at 01:42:49AM %2B0200
References:  <20000617014249.A76184@c187104187.telekabel.chello.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--opJtzjQTFsWo+cga
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Here's an updated version of checkports.sh. The old version used the
package name `swing-1.1.1' instead of the correct `jfc-1.1.1'.

Ernst


Ernst de Haan wrote:
> Hi,
> 
> 
> Here's a very small script that checks the existence of the ports needed
> by the FreeBSD JDK port (alpha patchset 9) as per Kees Jan Koster's page
> on:
> 
> * http://web.inter.nl.net/users/kjkoster/java/
> 
> This should make things about 1% easier :) Perhaps we can write a whole
> bunch of scripts or even a ports-like Makefile that will do this the
> right way.
> 
> 
> Ernst



--opJtzjQTFsWo+cga
Content-Type: application/x-sh
Content-Disposition: attachment; filename="checkports.sh"

#!/bin/sh

#-----------------------------------------------------------------------------
# Script that checks that all ports needed by the FreeBSD JDK port are
# installed
#
# Author: Ernst de Haan (ernst@jollem.com)
#

checkPort ( )
{
   echo -n ">> ${friendly_name}..."
   # found=`pkg_info | grep ${pkg_name}`
   # if [ -z "${found}" ]
   if ! `pkg_info -e ${pkg_name}`
   then
      echo " [ FAILED ]"
      echo "This port can be found in /usr/ports/${port_loc}"
   else
      echo " [ DONE ]"
   fi
}

echo "--- Checking availability of required ports ---"
friendly_name="LessTif (0.90.0)"
pkg_name="lesstif-0.90.0"
port_loc="x11-toolkits/lesstif"
checkPort

friendly_name="GNU make (3.79)"
pkg_name="gmake-3.79"
port_loc="devel/gmake/"
checkPort

friendly_name="GNU m4 (1.4)"
pkg_name="m4-1.4"
port_loc="devel/m4"
checkPort

friendly_name="Display GhostScript (0.5.9)"
pkg_name="dgs-0.5.9"
port_loc="x11/dgs"
checkPort

friendly_name="ODBC for UNIX (1.8.8)"
pkg_name="unixODBC-1.8.8"
port_loc="databases/unixODBC"
checkPort

friendly_name="Java Development Kit (1.1.8)"
pkg_name="jdk-1.1.8"
port_loc="java/jdk"
checkPort

friendly_name="Swing (1.1.1)"
pkg_name="jfc-1.1.1"
port_loc="java/jfc"
checkPort

friendly_name="Blackdown Linux JDK (1.2.2)"
pkg_name="linux-jdk-1.2.2"
port_loc="java/linux-jdk"
checkPort

friendly_name="ZIP (2.3)"
pkg_name="zip-2.3"
port_loc="archivers/zip"
checkPort

--opJtzjQTFsWo+cga--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000620091933.B2537>