Re: scons copyto /path/to/project

Bill Deegan <bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org> Mon, 7 Sep 2020 12:39:06 -0400
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <CAEyG4CH-cbVZeUWqa4BCdveoG5xwRkqZZxADbd--fy1cOiaPnQ__33018.9271293179$1599496773$gmane$org@mail.gmail.com>
--===============7227918889221672659==
Content-Type: multipart/alternative; boundary="000000000000194e8205aebbdc38"

--000000000000194e8205aebbdc38
Content-Type: text/plain; charset="UTF-8"

As I said. Users mailing list.


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

> But it will be be a patch for
> https://github.com/SCons/scons/blob/master/SConstruct
>
> On Mon, Sep 7, 2020 at 6:02 PM Bill Deegan <bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org>
> wrote:
> >
> > 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
> >
> > _______________________________________________
> > Scons-dev mailing list
> > [email protected]
> > https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
> --
> anatoly t.
> _______________________________________________
> Scons-dev mailing list
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>

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

<div dir=3D"ltr"><div>As I said. Users mailing list.</div><div><br></div></=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On=
 Mon, Sep 7, 2020 at 11:11 AM anatoly techtonik &lt;<a href=3D"mailto:techt=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex">But it will be be a patch for<br>
<a href=3D"https://github.com/SCons/scons/blob/master/SConstruct" rel=3D"no=
referrer" target=3D"_blank">https://github.com/SCons/scons/blob/master/SCon=
struct</a><br>
<br>
On Mon, Sep 7, 2020 at 6:02 PM Bill Deegan &lt;<a href=3D"mailto:bill@baddo=
gconsulting.com" target=3D"_blank">bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org</a>&gt; wrote:=
<br>
&gt;<br>
&gt; THis belongs in scons-user mailing list. Moving it there.<br>
&gt;<br>
&gt; On Mon, Sep 7, 2020 at 10:33 AM anatoly techtonik &lt;<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:=
<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Sep 6, 2020 at 7:12 PM Mats Wichmann &lt;<a href=3D"mailto=
:[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; Is it possible to create a build command that will copy<=
br>
&gt;&gt; &gt; &gt; SCons local to the target directory?<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;=C2=A0 =C2=A0 =C2=A0SCons/ -&gt; /path/to/project/SCons/<=
br>
&gt;&gt; &gt; &gt;=C2=A0 =C2=A0 =C2=A0scripts/scons.py -&gt; /path/to/proje=
ct/scons<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; I haven&#39;t used SCons for a while and I don&#39;t rem=
ember<br>
&gt;&gt; &gt; &gt; how to create phony target &quot;copyto&quot; and handle=
 path<br>
&gt;&gt; &gt; &gt; parameter to it.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Phony targets are Alias.<br>
&gt;&gt; &gt; Copying stuff usually involves some combination of Install an=
d Default.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; If that&#39;s what you are asking...<br>
&gt;&gt;<br>
&gt;&gt; Yup, thanks. I created a target that copies `scripts/scons.py` to =
`scons`,<br>
&gt;&gt; which is invoked as `scons copyto`:<br>
&gt;&gt;<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0Command(&#39;scons&#39;, [], Copy(&#39;$TARGET&=
#39;, &#39;scripts/scons.py&#39;))<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0Alias(&#39;copyto&#39;, &#39;scons&#39;)<br>
&gt;&gt;<br>
&gt;&gt; Now how to parse `/path/to/project` param to `copyto`?<br>
&gt;&gt; --<br>
&gt;&gt; anatoly t.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Scons-dev mailing list<br>
&gt;&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">Scons-dev=
@scons.org</a><br>
&gt;&gt; <a href=3D"https://pairlist2.pair.net/mailman/listinfo/scons-dev" =
rel=3D"noreferrer" target=3D"_blank">https://pairlist2.pair.net/mailman/lis=
tinfo/scons-dev</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Scons-dev mailing list<br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">Scons-dev@sco=
ns.org</a><br>
&gt; <a href=3D"https://pairlist2.pair.net/mailman/listinfo/scons-dev" rel=
=3D"noreferrer" target=3D"_blank">https://pairlist2.pair.net/mailman/listin=
fo/scons-dev</a><br>
<br>
<br>
<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>

--000000000000194e8205aebbdc38--

--===============7227918889221672659==
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

--===============7227918889221672659==--