Re: bash question
From: Peter T. Breuer (ptb_at_oboe.it.uc3m.es)
Date: 10/15/03
- Next message: P.Venugopal: "Re: color on LINUX telnet terminal."
- Previous message: Dances With Crows: "Re: Tiff conversion dilemma"
- In reply to: David: "Re: bash question"
- Next in thread: Lloyd Sumpter: "Re: bash question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: P.Venugopal: "Re: color on LINUX telnet terminal."
- Previous message: Dances With Crows: "Re: Tiff conversion dilemma"
- In reply to: David: "Re: bash question"
- Next in thread: Lloyd Sumpter: "Re: bash question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|