#14031: provide proper cygwin rebasing scripts
-------------------------------------+--------------------------------------
       Reporter:  dimpase            |         Owner:  tbd         
           Type:  defect             |        Status:  needs_review
       Priority:  major              |     Milestone:  sage-5.7    
      Component:  cygwin             |    Resolution:              
       Keywords:  rebaseall, rebase  |   Work issues:              
Report Upstream:  N/A                |     Reviewers:              
        Authors:                     |     Merged in:              
   Dependencies:                     |      Stopgaps:              
-------------------------------------+--------------------------------------

Comment (by dimpase):

 Replying to [comment:2 kcrisman]:
 > I don't know what you mean by "right way".  I usually go into
 `$SAGE_LOCAL/bin` and do hg commands from that repository...
 I was wondering whether I need to wrap it up in an spkg...

 >
 > {{{
 > rem dash %SAGE_ROOT%\local\bin\s.sh
 > }}}
 > But the script isn't called `s.sh`?  I know nothing about DOS so maybe
 this is obviously right.
 {{{rem}}} means that the whole line is commented out, same as {{{#}}} for
 Unix shells.
 Indeed, this line can be deleted (a debugging leftover).

 >
 > An additional remark in the script about just using
 {{{C:\cygwin\bin\dash.exe}}} in the command prompt would not be amiss,
 the batch file does the right thing, if your Cygwin is in {{{C:\cygwin}}}.
 Otherwise the corr. line there needs to be changed.

 >since one could imagine people helping who don't know how to set paths in
 Windows, or even how to make env vars in Windows (e.g., I have no idea how
 to set `SAGE_ROOT` in the Windows command line).

 no, it is meant to be changed in the batch file body. Perhaps I should
 mention that it is meant to call the dash script from the batch file, and
 not directly.


 By the way, setting {{{BLAH}}} to {{{foo}}} in the Windows command line is
 just
 {{{
 set BLAH=foo
 }}}
 And if you need to evaluate {{{BLAH}}} you do {{{%BLAH%}}}, e.g.
 {{{
 echo %BLAH%
 }}}
 will print {{{BLAH}}}'s value. You might also want to know that if you
 call dash after setting {{{BLAH}}}, it will be known to dash, and can be
 evaluated as usual, i.e. as {{{$BLAH}}}. dash will also treat {{{PATH}}}
 in a special way, by trying to translate it into Cygwin's PATH in some
 cases. But I digressed. :-)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14031#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to