From c16798d8a71b9d92bc9a8003e02b10fc0a49d390 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 24 Mar 2012 23:44:15 +0100 Subject: [PATCH] contrib: removed unused git2cl script This patch removes a file that is not used anymore. Signed-off-by: Daniel Borkmann --- contrib/devel/git/git2cl.py | 100 ---------------------------------------- contrib/devel/vim/README | 1 - contrib/devel/vim/vim80warn.vim | 1 + 3 files changed, 1 insertion(+), 101 deletions(-) delete mode 100755 contrib/devel/git/git2cl.py delete mode 100644 contrib/devel/vim/README diff --git a/contrib/devel/git/git2cl.py b/contrib/devel/git/git2cl.py deleted file mode 100755 index d1923b5d..00000000 --- a/contrib/devel/git/git2cl.py +++ /dev/null @@ -1,100 +0,0 @@ -#!/usr/bin/python - -# Copyright 2008 Marcus D. Hanwell -# Copyright 2010 Daniel Borkmann - -# Distributed under the terms of the GNU General Public License v2 or later. - -import string, re, os - -fin = os.popen('git log --summary --stat --no-merges --date=short', 'r') -fout = open('CHANGELOG', 'w') - -authorFound = False -dateFound = False -messageFound = False -changesFound = False -message = "" -changes = "" -messageNL = False -prevAuthorLine = "" - -for line in fin: - if string.find(line, 'commit') >= 0: - authorFound = False - dateFound = False - messageFound = False - changesFound = False - messageNL = False - message = "" - continue - elif re.match('Author:', line) >=0: - authorList = re.split(': ', line, 1) - author = authorList[1] - author = author[0:len(author)-1] - authorFound = True - elif re.match('Date:', line) >= 0: - dateList = re.split(': ', line, 1) - date = dateList[1] - date = date[0:len(date)-1] - dateFound = True - elif re.match('\s+git-svn-id:', line) >= 0: - continue - elif re.search('Signed-off-by', line) >= 0: - continue - elif re.search('.+files changed.+insertions.+deletions.+', line) \ - >= 0: - changes = "\n :" + line[:-1] - changesFound = True - elif authorFound & dateFound & messageFound == False: - if len(line) == 1: - if messageNL: - messageFound = True - else: - messageNL = True - elif len(line) == 4: - messageFound = True - else: - if len(message) == 0: - message = message + line.strip() - else: - message = message + " " + line.strip() - elif authorFound & dateFound & messageFound: - authorLine = date + " " + author + changes - if len(prevAuthorLine) == 0: - fout.write(authorLine + "\n\n") - elif authorLine == prevAuthorLine: - pass - else: - fout.write("\n" + authorLine + "\n\n") - commitLine = message - i = 0 - first = False - commit = " * " - while i < len(commitLine): - if len(commitLine) < i + 72: - commit = commit + \ - commitLine[i:len(commitLine)] + \ - "\n " - break - index = commitLine.rfind(' ', i, i + 72) - if index > i: - commit = commit + commitLine[i:index] + \ - "\n " - i = index + 1 - else: - commit = commit + commitLine[i:72] + \ - "\n " - i = i + 73 - commit = commit[:-5] - fout.write(commit + "\n") - authorFound = False - dateFound = False - messageFound = False - changesFound = False - messageNL = False - message = "" - prevAuthorLine = authorLine - -fin.close() -fout.close() diff --git a/contrib/devel/vim/README b/contrib/devel/vim/README deleted file mode 100644 index f1b179bd..00000000 --- a/contrib/devel/vim/README +++ /dev/null @@ -1 +0,0 @@ -Installation: Create a ~/.vim/plugin directory and copy these plugin files into this directory. diff --git a/contrib/devel/vim/vim80warn.vim b/contrib/devel/vim/vim80warn.vim index 39cb73af..3cab62d0 100644 --- a/contrib/devel/vim/vim80warn.vim +++ b/contrib/devel/vim/vim80warn.vim @@ -1,2 +1,3 @@ +" Copy into ~/.vim/plugin directory :au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1) :au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) -- 2.11.4.GIT