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 <<a href=3D"mailto:techt= [email protected]">[email protected]</a>> 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 <<a href=3D"mailto:bill@baddo= gconsulting.com" target=3D"_blank">bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org</a>> wrote:= <br> ><br> > THis belongs in scons-user mailing list. Moving it there.<br> ><br> > On Mon, Sep 7, 2020 at 10:33 AM anatoly techtonik <<a href=3D"mailt= o:[email protected]" target=3D"_blank">[email protected]</a>> wrote:= <br> >><br> >> On Sun, Sep 6, 2020 at 7:12 PM Mats Wichmann <<a href=3D"mailto= :[email protected]" target=3D"_blank">[email protected]</a>> wrote:<br> >> > ><br> >> > > Is it possible to create a build command that will copy<= br> >> > > SCons local to the target directory?<br> >> > ><br> >> > >=C2=A0 =C2=A0 =C2=A0SCons/ -> /path/to/project/SCons/<= br> >> > >=C2=A0 =C2=A0 =C2=A0scripts/scons.py -> /path/to/proje= ct/scons<br> >> > ><br> >> > > I haven't used SCons for a while and I don't rem= ember<br> >> > > how to create phony target "copyto" and handle= path<br> >> > > parameter to it.<br> >> ><br> >> > Phony targets are Alias.<br> >> > Copying stuff usually involves some combination of Install an= d Default.<br> >> ><br> >> > If that'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 =C2=A0Command('scons', [], Copy('$TARGET&= #39;, 'scripts/scons.py'))<br> >>=C2=A0 =C2=A0 =C2=A0Alias('copyto', 'scons')<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">Scons-dev= @scons.org</a><br> >> <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> ><br> > _______________________________________________<br> > Scons-dev mailing list<br> > <a href=3D"mailto:[email protected]" target=3D"_blank">Scons-dev@sco= ns.org</a><br> > <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==--