[GRASS5] src/ps.map error

Hello all

I just did an update and compile of the release branch and received the
following error on an SGI using vendor compilers.

#################################################################
/usr/people/jhickey/grassRel/grass/src/ps.map/devices
  mkdir OBJ.mips-sgi-irix6.5
  make -f OBJ.mips-sgi-irix6.5/make.rules

  if [ ! -d /.../grass/dist.mips-sgi-irix6.5/etc/paint ]; then mkdir
/.../grass/dist.mips-sgi-irix6.5/etc/paint; fi
  if [ ! -d /.../grass/dist.mips-sgi-irix6.5/etc/paint/ps.devices ]; then
mkdir /.../grass/dist.mips-sgi-irix6.5/etc/paint/ps.devices; fi
  cp ps.devices/* /.../grass/dist.mips-sgi-irix6.5/etc/paint/ps.devices
2>/dev/null ; true
*** Error code 2 (bu21)
*** Error code 1 (bu21)
GISGEN failure at STEP: src/ps.map

I'm not sure what is happening here. Any ideas?

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Justin Hickey wrote:

I just did an update and compile of the release branch and received the
following error on an SGI using vendor compilers.

#################################################################
/usr/people/jhickey/grassRel/grass/src/ps.map/devices
  mkdir OBJ.mips-sgi-irix6.5
  make -f OBJ.mips-sgi-irix6.5/make.rules

  if [ ! -d /.../grass/dist.mips-sgi-irix6.5/etc/paint ]; then mkdir
/.../grass/dist.mips-sgi-irix6.5/etc/paint; fi
  if [ ! -d /.../grass/dist.mips-sgi-irix6.5/etc/paint/ps.devices ]; then
mkdir /.../grass/dist.mips-sgi-irix6.5/etc/paint/ps.devices; fi
  cp ps.devices/* /.../grass/dist.mips-sgi-irix6.5/etc/paint/ps.devices
2>/dev/null ; true
*** Error code 2 (bu21)
*** Error code 1 (bu21)
GISGEN failure at STEP: src/ps.map

I'm not sure what is happening here. Any ideas?

Well, this looks like my fault again :frowning:

The SGI "make" appears not to like the line:

  cp ps.devices/* $(GISBASE)/etc/paint/ps.devices 2>/dev/null ; true

This was a "tar" command, but I changed it to "cp" so that it failed
to copy the "CVS" directory (which was causing "ps.select" to list
"CVS" as an option).

I'm not familiar with SGI's make, so I'm not sure what it is about
that line that it doesn't like.

The previous version was:

  (cd ps.devices ; tar -cvf - * | (cd $(GISBASE)/etc/paint/ps.devices ; tar xvf - 2>/dev/null ); true )

Does enclosing the line in parentheses help?

--
Glynn Clements <glynn.clements@virgin.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Glynn

Glynn Clements wrote:

The SGI "make" appears not to like the line:

        cp ps.devices/* $(GISBASE)/etc/paint/ps.devices 2>/dev/null ; true

Ahh. OK, I'll look into it. It should be easy to fix since I got
Makefile.in working a while ago.

I'm updating command.c so I'll let you know soon regarding that one.
Lets cross our fingers!

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Glynn
Justin Hickey wrote:

Glynn Clements wrote:
> The SGI "make" appears not to like the line:
>
> cp ps.devices/* $(GISBASE)/etc/paint/ps.devices 2>/dev/null ; true
>

Ahh. OK, I'll look into it. It should be easy to fix since I got
Makefile.in working a while ago.

This is fixed now. The problem was that I use tcsh which does not
recognize 2 as a file descriptor so I changed the line to

${SHELL} -c "cp ps.devices/* $(GISBASE)/etc/paint/ps.devices 2>/dev/null
; true"

and all seems to work.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'