From cf7778205111b13624fc202ae604a83dd371cab9 Mon Sep 17 00:00:00 2001 From: terwer Date: Thu, 2 Feb 2023 11:57:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC-=E9=87=8D=E6=9E=84serve=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/serve.py | 43 +++++++++++++++++++++++++++++++++++++++++++ scripts/version.py | 45 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 87 insertions(+), 1 deletion(-) diff --git a/scripts/serve.py b/scripts/serve.py index 6ebacc29..de46d87d 100644 --- a/scripts/serve.py +++ b/scripts/serve.py @@ -1,3 +1,46 @@ +# Copyright (c) 2023, Terwer . All rights reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Terwer designates this +# particular file as subject to the "Classpath" exception as provided +# by Terwer in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com +# or visit www.terwer.space if you need additional information or have any +# questions. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Terwer designates this +# particular file as subject to the "Classpath" exception as provided +# by Terwer in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com +# or visit www.terwer.space if you need additional information or have any +# questions. + import os import sys diff --git a/scripts/version.py b/scripts/version.py index 29dbb14b..b44810c2 100644 --- a/scripts/version.py +++ b/scripts/version.py @@ -1,7 +1,50 @@ +# Copyright (c) 2023, Terwer . All rights reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Terwer designates this +# particular file as subject to the "Classpath" exception as provided +# by Terwer in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com +# or visit www.terwer.space if you need additional information or have any +# questions. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Terwer designates this +# particular file as subject to the "Classpath" exception as provided +# by Terwer in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com +# or visit www.terwer.space if you need additional information or have any +# questions. + +import argparse import json import os import sys -import argparse def parse_json(filename, version_field, new_version):