Menu

#91 Fix "make distclean" breaking svn.

pending
nobody
None
5
2012-11-02
2010-01-30
David
No

make distclean among other things does this:

rm -f core gen*.log find . -size 0

Currently the file src/doc/DANG/.svn/text-base/summary_Debugger.svn-base matches this (size 0), so make distclean consfuses svn:

svn: Can't open file 'src/doc/DANG/.svn/text-base/summary_Debugger.svn-base': No such file or directory

and one has to rm -rf srd/doc/DANG; svn update to fix this.

Attached patch prunes .svn directories. (Only in the "-size 0" find. It might be good idea to make all the find invocations skip those, to avoid any possibility of messing with svn. On the other hand the other criteria would probably never trigger in .svn directories, so maybe complicating the rules is not worth it.)

Discussion

  • David

    David - 2010-01-30

    Fix make distclean.

     
  • a23 d56

    a23 d56 - 2010-04-08

    Given the action of -prune, the trailing / in '/.svn/*' is suboptimal. Use this instead:

    • rm -f core gen*.log find . -path '*/.svn' -prune -o -size 0 -print
     
  • Stas Sergeev

    Stas Sergeev - 2012-10-22

    Now git is in use - do you think the similar
    treatment is still needed?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.