sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b)
- From: Jeremy Blosser <jblosser-smgl AT firinn.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b)
- Date: Sat, 3 Mar 2007 19:22:09 -0600
On Mar 04, Pol Vinogradov [vin.public AT gmail.com] wrote:
> On Sat, 3 Mar 2007 18:20:57 -0600
> Jeremy Blosser <jblosser-smgl AT firinn.org> wrote:
> > Well, several of us have tried, but you're not giving any feedback on
> > where specifically you are still confused. Are you still confused by
> > our explanations, or do you just not believe us?
> >
> > I'll repeat: If a spell wants to find a file to
> > cp/mv/rm/sed/grep/whatever, it should always be INSTALL_ROOT.
> > *Always*.
> >
> > What you are doing above clearly counts as the spell finding a file
> > to do something to it, so it should be INSTALL_ROOT. What exactly is
> > still confusing about that?
> >
> maybe i'm impressed with sandalle's explanation of *_ROOTs... he said
> TRACK_ROOT is used to find files, INSTALL_ROOT -- to install, so, my
> decision of what ROOT should be used based on action performed with
> file. what wrong then?
If this is the confusion, then just forget you heard it... it's true
in only a limited sense and not the way you're using it.
TRACK_ROOT is *not* used to find files _by the spell_. It *is* used to
find files at runtime by the other files that were installed.
So for the imaginary package 'foobar', grimoire/section/foobar/INSTALL
finds files with INSTALL_ROOT:
mv $INSTALL_ROOT/etc/foobar $INSTALL_ROOT/etc/foobar.old
cp etc/foobar $INSTALL_ROOT/etc/foobar
rm $INSTALL_ROOT/etc/foobar.old
...etc...
After it's installed and running, /usr/bin/foobar, /etc/foobar, etc. find
files with TRACK_ROOT, but that's very rarely anything you have to worry
about. If /usr/bin/foobar needed to know where its config file was, you'd
want to make sure you used sed to tell it:
sed -i -e "s,/etc/foobar,$TRACK_ROOT/etc/foobar,g"
$INSTALL_ROOT/usr/bin/foobar
Attachment:
pgpBYo84UT9gT.pgp
Description: PGP signature
-
[SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Pol Vinogradov, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Jaka Kranjc, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Pol Vinogradov, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Jeremy Blosser, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Pol Vinogradov, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Jeremy Blosser, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Pol Vinogradov, 03/03/2007
- Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b), Jeremy Blosser, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Pol Vinogradov, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Jeremy Blosser, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Pol Vinogradov, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Jeremy Blosser, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Pol Vinogradov, 03/03/2007
-
Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (ed4a25fe62d222702a003048bc062cf6eb2af75b),
Jaka Kranjc, 03/03/2007
Archive powered by MHonArc 2.6.24.