Re: bash question

From: Peter T. Breuer (ptb_at_oboe.it.uc3m.es)
Date: 10/15/03


Date: Wed, 15 Oct 2003 06:00:34 +0200

David <thunderbolt01@netscape.net> wrote:
> Peter T. Breuer wrote:
> >>
> >>CWD=`pwd`
> --snip a lot of the script--
>
> > Well, that was interesting. That's a bit of package description in
> > /install. What's this "CWD" business?
>
> "CWD" is set at the top of the script (CWD=`pwd`) this is the

But isn't CWD in shell always equal to the current dir? Let's see ...
uh no. That's PWD:

       PWD The current working directory as set by the cd com
              mand.

So that's OK.

> >
> > Well, fine. So? What's your problem? That script built stuff tarred it
> > up, and left the result in /tmp or wherever-we-are/package/. Nothing
> > else. If you think the script changes, run it under sh -x and notice
> > where!
>
> What I end up with are these lines in the doinst.sh script. When

Please make yourself comprehensible! This is AWFUL! What "doinst.sh"
script? What "these lines"? Are you able to write anything that anyone
else is able to understand?

> I install the package it doesn't create the link properly.

What "link"? What do you mean by "install"? What do you mean by
"properly"? You mean untar or installpkg, right? DO NOT INTERPRET!
Just show.

> ( cd usr/lib/mozilla-1.5/plugins ; rm -rf plugins )
> ( cd usr/lib/mozilla-1.5/plugins ; ln -sf ../mozilla/plugins plugins )

If all you are complaining about is lack of a correct link after using
installpkg, don't worry about it. I daresay one of the slackware build
commands (which?!!) is responsible for compiling a list of links that
have to be added into a doinst.sh script. The above two lines look
like generated output that one would expect to be in a doinst.sh script
If they are not the lines you want, and to me they look as though they
build plugins/plugins, pointing to the wrong place, then you have two
possibilities to consider:

   1) either the slackware build command that makes the doinst.sh
      is buggy
   2) or your link was wrong in the first place.

I would give them about 50/50 probability. Go check!

Peter



Relevant Pages

  • lk-changelog.pl 0.326
    ... This script is used by Linus and Marcelo to rearrange and reformat BK ... 'david:gibson.dropbear.id.au' => 'David Gibson', ... +'johansen:immunix.com' => 'John Johansen', ... 'pebl:math.ku.dk' => 'Peter Berg Larsen', ...
    (Linux-Kernel)
  • lk-changelog.pl 0.190
    ... This script is used by Linus and Marcelo to rearrange and reformat BK ... +'erik:harddisk-recovery.nl' => 'Erik Mouw', ... 'peter:cadcamlab.org' => 'Peter Samuelson', ...
    (Linux-Kernel)
  • lk-changelog.pl 0.314
    ... This script is used by Linus and Marcelo to rearrange and reformat BK ... ChangeSet logs into a more human-readable format, ... Peter Anvin', ... 'paul.clements:steeleye.com' => 'Paul Clements', ...
    (Linux-Kernel)
  • Re: jms in toronto
    ... Shortish version of The Famous B5 Joke Script Story: ... Peter and Andreas were on stage and Joe was up next. ...
    (rec.arts.sf.tv.babylon5.moderated)
  • Re: jms in toronto
    ... > Shortish version of The Famous B5 Joke Script Story: ... Peter and Andreas were on stage and Joe was up next. ...
    (rec.arts.sf.tv.babylon5.moderated)