spaces to tabs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5708 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4a352ada8a
commit
463c454854
1 changed files with 33 additions and 33 deletions
|
@ -163,45 +163,45 @@ def RunTests():
|
||||||
)
|
)
|
||||||
|
|
||||||
def TestSubversionEOL():
|
def TestSubversionEOL():
|
||||||
print 'ensuring EOL...'
|
print 'ensuring EOL...'
|
||||||
|
|
||||||
from os import walk
|
from os import walk
|
||||||
from os.path import join
|
from os.path import join
|
||||||
from os.path import splitext
|
from os.path import splitext
|
||||||
|
|
||||||
eoldict = {
|
eoldict = {
|
||||||
'.nsh' : 'native',
|
'.nsh' : 'native',
|
||||||
'.nsi' : 'native',
|
'.nsi' : 'native',
|
||||||
'.txt' : 'native',
|
'.txt' : 'native',
|
||||||
'.ini' : 'CRLF',
|
'.ini' : 'CRLF',
|
||||||
'.dsp' : 'CRLF',
|
'.dsp' : 'CRLF',
|
||||||
'.dsw' : 'CRLF'
|
'.dsw' : 'CRLF'
|
||||||
}
|
}
|
||||||
|
|
||||||
exceptions = ['newfile.txt', 'oldfile.txt']
|
exceptions = ['newfile.txt', 'oldfile.txt']
|
||||||
|
|
||||||
svn = pysvn.Client()
|
svn = pysvn.Client()
|
||||||
|
|
||||||
for root, dirs, files in walk('..'):
|
for root, dirs, files in walk('..'):
|
||||||
if '.svn' not in dirs:
|
if '.svn' not in dirs:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
def versioned(f):
|
def versioned(f):
|
||||||
s = svn.status(join(root, f))[0].text_status
|
s = svn.status(join(root, f))[0].text_status
|
||||||
return s != pysvn.wc_status_kind.unversioned
|
return s != pysvn.wc_status_kind.unversioned
|
||||||
|
|
||||||
svn_files = filter(versioned, files)
|
svn_files = filter(versioned, files)
|
||||||
svn_files = filter(lambda x: x not in exceptions, svn_files)
|
svn_files = filter(lambda x: x not in exceptions, svn_files)
|
||||||
|
|
||||||
for f in svn_files:
|
for f in svn_files:
|
||||||
ext = splitext(f)[1]
|
ext = splitext(f)[1]
|
||||||
if ext in eoldict.keys():
|
if ext in eoldict.keys():
|
||||||
eol = eoldict[ext]
|
eol = eoldict[ext]
|
||||||
s = svn.propget('svn:eol-style', join(root, f)).values()
|
s = svn.propget('svn:eol-style', join(root, f)).values()
|
||||||
if not s or s[0] != eol:
|
if not s or s[0] != eol:
|
||||||
print '*** %s has bad eol-style' % f
|
print '*** %s has bad eol-style' % f
|
||||||
log('*** %s has bad eol-style' % f)
|
log('*** %s has bad eol-style' % f)
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
def CreateMenuImage():
|
def CreateMenuImage():
|
||||||
print 'creating images...'
|
print 'creating images...'
|
||||||
|
@ -380,7 +380,7 @@ def UploadFiles():
|
||||||
'upload failed'
|
'upload failed'
|
||||||
)
|
)
|
||||||
|
|
||||||
os.unlink('sftp-commands')
|
os.unlink('sftp-commands')
|
||||||
|
|
||||||
def ManualRelease():
|
def ManualRelease():
|
||||||
print 'release url:'
|
print 'release url:'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue