aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-31 00:42:06 +0800
committerGitHub <noreply@github.com>2020-10-31 00:42:06 +0800
commita3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f (patch)
treeee006874b0c93e9bfc76f141a092a8b9585a1f95 /tools
parent0c4caaebe2480e77918d5d7df234f0edaeab74ba (diff)
parent7ce0846d9ec968da3ea4f7ebcc6db26db8e49089 (diff)
downloadtimeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.tar.gz
timeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.tar.bz2
timeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.zip
Merge pull request #161 from crupest/upgrade
Upgrade packages and split front end and back end.
Diffstat (limited to 'tools')
-rw-r--r--tools/convert-eol.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/tools/convert-eol.py b/tools/convert-eol.py
deleted file mode 100644
index 3ea8ed7c..00000000
--- a/tools/convert-eol.py
+++ /dev/null
@@ -1,35 +0,0 @@
-# This is a python script that converts all text source codes into
-# CRLF (Windows line ending) eol format and UTF-8 with NO BOM encoding.
-
-import glob
-import os.path
-
-project_root = os.path.relpath(os.path.join(os.path.dirname(__file__), '..'))
-
-
-def convert(file_path):
- with open(file_path, 'r', encoding='utf-8') as open_file:
- content = open_file.read()
-
- #if there is BOM, remove BOM
- if content[0] == '\ufeff':
- content = content[1:]
-
- with open(file_path, 'w', encoding='utf-8', newline='\r\n') as open_file:
- open_file.write(content)
-
-
-glob_list = [
- './nuget.config',
- '**/*.sln',
- '**/*.cs',
- '**/*.csproj',
- '**/appsettings*.json'
-]
-
-for glob_pattern in glob_list:
- for f in glob.glob(glob_pattern, recursive=True):
- print('Converting {}'.format(f))
- convert(f)
-
-print('Done!!!')