From owner-freebsd-java Tue Jun 20 0:19:43 2000 Delivered-To: freebsd-java@freebsd.org Received: from c187104187.telekabel.chello.nl (c187104187.telekabel.chello.nl [212.187.104.187]) by hub.freebsd.org (Postfix) with SMTP id 64EC337BBAD for ; Tue, 20 Jun 2000 00:19:39 -0700 (PDT) (envelope-from ernst@c187104187.telekabel.chello.nl) Received: (qmail 2591 invoked by uid 1000); 20 Jun 2000 07:19:33 -0000 Date: Tue, 20 Jun 2000 09:19:33 +0200 From: Ernst de Haan To: freebsd-java@freebsd.org Subject: Re: checkports.sh Message-ID: <20000620091933.B2537@c187104187.telekabel.chello.nl> References: <20000617014249.A76184@c187104187.telekabel.chello.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000617014249.A76184@c187104187.telekabel.chello.nl>; from ernst@jollem.com on Sat, Jun 17, 2000 at 01:42:49AM +0200 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --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