Re: scons copyto /path/to/project

Bill Deegan <bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org> Mon, 7 Sep 2020 10:56:21 -0400
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <CAEyG4CHHuf=JaeY9AcPTrsOnubnXiJr71DKQKx74FsmxLu0o4A__11130.0387930655$1599490937$gmane$org@mail.gmail.com>
--===============6869080328536360731==
Content-Type: multipart/alternative; boundary="00000000000091970405aeba6c92"

--00000000000091970405aeba6c92
Content-Type: text/plain; charset="UTF-8"

THis belongs in scons-user mailing list. Moving it there.

On Mon, Sep 7, 2020 at 10:33 AM anatoly techtonik <[email protected]>
wrote:

> On Sun, Sep 6, 2020 at 7:12 PM Mats Wichmann <[email protected]> wrote:
> > >
> > > Is it possible to create a build command that will copy
> > > SCons local to the target directory?
> > >
> > >     SCons/ -> /path/to/project/SCons/
> > >     scripts/scons.py -> /path/to/project/scons
> > >
> > > I haven't used SCons for a while and I don't remember
> > > how to create phony target "copyto" and handle path
> > > parameter to it.
> >
> > Phony targets are Alias.
> > Copying stuff usually involves some combination of Install and Default.
> >
> > If that's what you are asking...
>
> Yup, thanks. I created a target that copies `scripts/scons.py` to `scons`,
> which is invoked as `scons copyto`:
>
>     Command('scons', [], Copy('$TARGET', 'scripts/scons.py'))
>     Alias('copyto', 'scons')
>
> Now how to parse `/path/to/project` param to `copyto`?
> --
> anatoly t.
> _______________________________________________
> Scons-dev mailing list
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>

--00000000000091970405aeba6c92
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">THis belongs in scons-user mailing list. Moving it there.<=
br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_att=
r">On Mon, Sep 7, 2020 at 10:33 AM anatoly techtonik &lt;<a href=3D"mailto:=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">On Sun, Sep 6, 2020 at 7:12 PM Mats=
 Wichmann &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">mats@wi=
chmann.us</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Is it possible to create a build command that will copy<br>
&gt; &gt; SCons local to the target directory?<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0SCons/ -&gt; /path/to/project/SCons/<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0scripts/scons.py -&gt; /path/to/project/scons<=
br>
&gt; &gt;<br>
&gt; &gt; I haven&#39;t used SCons for a while and I don&#39;t remember<br>
&gt; &gt; how to create phony target &quot;copyto&quot; and handle path<br>
&gt; &gt; parameter to it.<br>
&gt;<br>
&gt; Phony targets are Alias.<br>
&gt; Copying stuff usually involves some combination of Install and Default=
.<br>
&gt;<br>
&gt; If that&#39;s what you are asking...<br>
<br>
Yup, thanks. I created a target that copies `scripts/scons.py` to `scons`,<=
br>
which is invoked as `scons copyto`:<br>
<br>
=C2=A0 =C2=A0 Command(&#39;scons&#39;, [], Copy(&#39;$TARGET&#39;, &#39;scr=
ipts/scons.py&#39;))<br>
=C2=A0 =C2=A0 Alias(&#39;copyto&#39;, &#39;scons&#39;)<br>
<br>
Now how to parse `/path/to/project` param to `copyto`?<br>
-- <br>
anatoly t.<br>
_______________________________________________<br>
Scons-dev mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
g</a><br>
<a href=3D"https://pairlist2.pair.net/mailman/listinfo/scons-dev" rel=3D"no=
referrer" target=3D"_blank">https://pairlist2.pair.net/mailman/listinfo/sco=
ns-dev</a><br>
</blockquote></div>

--00000000000091970405aeba6c92--

--===============6869080328536360731==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev

--===============6869080328536360731==--