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 <<a href=3D"mailto:= [email protected]">[email protected]</a>> 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 <<a href=3D"mailto:[email protected]" target=3D"_blank">mats@wi= chmann.us</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/project/scons<= br> > ><br> > > I haven't used SCons for a while and I don't remember<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 and 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 Command('scons', [], Copy('$TARGET', 'scr= ipts/scons.py'))<br> =C2=A0 =C2=A0 Alias('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">[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==--