#16303: 'make doc-clean' calls system-wide 'git', which may break 'make 
distclean'
----------------------------+----------------------------
       Reporter:  leif      |        Owner:
           Type:  defect    |       Status:  needs_info
       Priority:  critical  |    Milestone:  sage-6.3
      Component:  build     |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:  Volker Braun
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+----------------------------

Comment (by leif):

 Replying to [comment:24 jhpalmieri]:
 > I'm thinking of this:
 > {{{
 > #!diff
 > diff --git a/src/doc/Makefile b/src/doc/Makefile
 > index a4a15b3..e0f9f99 100644
 > --- a/src/doc/Makefile
 > +++ b/src/doc/Makefile
 > @@ -8,5 +8,9 @@ clean:
 >         rm -rf en/reference/sage
 >         rm -rf en/reference/sagenb
 >         rm -rf output
 > -       git clean -f -d .
 > -
 > +       -rmdir common/static 2>/dev/null
 > +       -rmdir en/reference/*/static 2>/dev/null
 > +       -rmdir en/reference/*/templates 2>/dev/null
 > +       -rmdir [a-z][a-z]/*/static 2>/dev/null
 > +       -rmdir [a-z][a-z]/*/templates 2>/dev/null
 > +       -git clean -f -d .
 > }}}
 > Comments? Should I create a branch?

 I'd be ok with that, although I can't tell whether that'll be sufficient
 (regarding potential docbuilding brokenness).

 And I think doing some consistency checks / removing stuff that may
 disturb Sphinx could really be done ''before docbuilding'' (i.e., in some
 of our builder scripts, as Volker suggested).  Maybe in addition, and on
 another ticket.  (As mentioned on sage-devel, I think there is currently
 more broken with Sphinx, e.g. `sage --docbuild reference html` apparently
 does no longer work.)

--
Ticket URL: <http://trac.sagemath.org/ticket/16303#comment:25>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to