[GRASS-dev] Wingrass and TclTk

Glynn Clements glynn at gclements.plus.com
Thu Nov 1 06:01:15 EDT 2007


Benjamin Ducke wrote:

> > we should make a list of the minimal set of needed commands, eg
> > awk
> > cat
> > cut
> > expr
> > grep
> > head
> > ls
> > paste
> > rm
> > sed
> > sort
> > tac
> > tail
> > tr
> > uniq
> > wc
> > which
> > 
> 
> Yes, that's definitely a good idea.
> Maybe I could just make a minimal MSYS install from scratch,
> check that the tools you listed (additions, anyone?) are in
> there and then try and remove more "bloat" until we are left
> with the minimum of what's needed.
> 
> That should severely cut down on the size of the MSYS package
> we'd need to provide.
> 
> Let's just all try and put together a complete list of what's
> needed first, then I'll have a go at it.

I see the following:

1. Standard utilities from coreutils:

[
basename
cat
cp
cut
date
dirname
echo
expr
head
ls
mkdir
mv
paste
pwd
rm
rmdir
sleep
sort
tac
tail
tee
tr
uniq
wc

Of those, [, echo and pwd exist both as bash built-ins and external
utilities.

2. Standard utilities not part of coreutils:

awk
bc
diff
file
find
grep
sed
which

[Note that "file" needs to locate /etc/magic.]

3. Additional utilities:

avcimport		v.in.e00
cs2cs			m.proj, r.tileset, v.in.garmin, v.in.gpsbabel
curl			r.in.wms
e00conv			v.in.e00
fc-list			mkftcap
gardump			v.in.garmin
gdal_translate		d.out.file, r.out.gdal.sh
gdalinfo		i.in.spotvgt, r.out.gdal.sh
gdalwarp		r.in.aster, r.in.wms
gnuplot			i.spectral
gpsbabel		v.in.gpsbabel
gpstrans		v.in.garmin
ldd			v.in.wfs
lynx			v.in.wfs
man			g.manual
ogrinfo			v.in.wfs
perl			d.monsize
pngtopnm		d.out.gpsdrive
pnmtojpeg		d.out.gpsdrive
sqlite3			v.db.join
sync			d.out.gpsdrive
unzip			r.in.srtm
wget			r.in.wms
wms.download		r.in.wms
wms.request		r.in.wms
xgraph			d.polar
xml2			r.in.wms

BTW, the use of "ldd" by v.in.wfs is entirely bogus:

	# xerces support compiled in?
	OGRINFO=`which ogrinfo`
	if [ -z "`ldd $OGRINFO | grep xerces`" ] ; then
	  g.message -e "OGR needs to be compiled with xerces-c support"
	  exit 1
	fi

This needs to be changed to something which will work on other
platforms. Does "gdalinfo --formats" suffice?

Also, we don't really need all three of lynx, wget and curl; any one
of those would suffice.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list