#14184: Fix # optional tags
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  mvngu   
           Type:  defect          |        Status:  new     
       Priority:  major           |     Milestone:  sage-5.8
      Component:  doctest         |    Resolution:          
       Keywords:                  |   Work issues:          
Report Upstream:  N/A             |     Reviewers:          
        Authors:  Jeroen Demeyer  |     Merged in:          
   Dependencies:                  |      Stopgaps:          
----------------------------------+-----------------------------------------
Description changed by jdemeyer:

Old description:

> Execute
> {{{
> for file in `find devel/sage/sage -name '*.py*'`; do
> sed -i -f /dev/stdin $file <<'EOF'
>
> s/# *requires optional/# optional:/i;
> s/# *optional and /# optional; /i;
>
> s/# *optional[-: ]* needs /# optional: /i;
> s/# *optional[-: ]* requires /# optional: /i;
> s/# *optional[-: ]* the /# optional: /i;
> s/# *optional[-: ]* package/# optional:/i;
> s/# *optional[-: ]* \([A-Za-z0-9]*\) command/# optional: \1/i;
> s/# *optional[-: ]* \([A-Za-z0-9]*\) and /# optional: \1 /i;
> s/# *optional[-: ]* \([A-Za-z0-9]*\) \(not tested\)/# optional: \1; \2/i;
>
> s/# *optional[-: ]* internet connection/# optional: internet/i;
> s/# *optional[-: ]* GAP package \([A-Za-z0-9']*\)/# optional:
> gap_packages (\1 package)/i;
> s/# *optional[-: ]* GAP optional databases*/# optional: database_gap/i;
>
> s/# *optional[-: ]* '\(.*\)'/# optional: \1/i;
>
> s/\(# *optional\)[-: ]*$/\1/i;
> s/# *optional[-: ]* \(.*\)# *$/# optional: \1/i;
>
> EOF
> done
> }}}

New description:

 Execute
 {{{
 for file in `find devel/sage/sage -name '*.py*'`; do
 sed -i -f /dev/stdin $file <<'EOF'

 s/# *requires optional/# optional:/i;
 s/# *optional and /# optional; /i;

 s/# *optional[-: ]* needs /# optional: /i;
 s/# *optional[-: ]* requires /# optional: /i;
 s/# *optional[-: ]* the /# optional: /i;
 s/# *optional[-: ]* package/# optional:/i;
 s/# *optional[-: ]* \([A-Za-z0-9]*\) command/# optional: \1/i;
 s/# *optional[-: ]* \([A-Za-z0-9]*\) and /# optional: \1 /i;
 s/# *optional[-: ]* \([A-Za-z0-9]*\) \(not tested\)/# optional: \1; \2/i;

 s/# *optional[-: ]* internet connection/# optional: internet/i;
 s/# *optional[-: ]* GAP package \([A-Za-z0-9']*\)/# optional: gap_packages
 (\1 package)/i;
 s/# *optional[-: ]* GAP optional databases*/# optional: database_gap/i;

 s/# *optional[-: ]* \(.*\)'\(.*\)'/# optional: \1\2/i;

 s/\(# *optional\)[-: ]*$/\1/i;
 s/# *optional[-: ]* \(.*\)# *$/# optional: \1/i;

 EOF
 done
 }}}

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14184#comment:2>
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