bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gawk problems with SVN r6286


From: Werner LEMBERG
Subject: Re: gawk problems with SVN r6286
Date: Thu, 28 May 2015 11:45:36 +0200 (CEST)

>   gawk -f ./jrtangle ./ti.twjr || rm -f texindex.awk
> 
> One question that comes to mind is why jrtangle is being run at all.
> Did you intentionally remove texindex.awk or modify ti.twjr?

Definitely not intentionally.  I've removed all non-SVN files from the
repository using the script below (which has the same effect as `git
-fdx'), then running the standard incantation to build from scratch.


    Werner


======================================================================


#!/usr/bin/python

import os
import re

def removeall(path):
    if not os.path.isdir(path):
        os.remove(path)
        return
    files=os.listdir(path)
    for x in files:
        fullpath=os.path.join(path, x)
        if os.path.isfile(fullpath):
            os.remove(fullpath)
        elif os.path.isdir(fullpath):
            removeall(fullpath)
    os.rmdir(path)

unversionedRex = re.compile('^ ?[\?ID] *[1-9 ]*[a-zA-Z]* +(.*)')
for l in  os.popen('svn status --no-ignore -v').readlines():
    match = unversionedRex.match(l)
    if match: removeall(match.group(1))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]