mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
Update Zenmap copyright date
This commit is contained in:
@@ -133,9 +133,27 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
from datetime import datetime
|
||||
|
||||
VERSION = os.path.join("share", "zenmap", "config", "zenmap_version")
|
||||
VERSION_PY = os.path.join("zenmapCore", "Version.py")
|
||||
NAME_PY = os.path.join("zenmapCore", "Name.py")
|
||||
|
||||
|
||||
def update_date(base_dir):
|
||||
name_file = os.path.join(base_dir, NAME_PY)
|
||||
print ">>> Updating %s" % name_file
|
||||
nf = open(name_file, "r")
|
||||
ncontent = nf.read()
|
||||
nf.close()
|
||||
ncontent = re.sub(r'APP_COPYRIGHT *= *"Copyright 2005-....',
|
||||
'APP_COPYRIGHT = "Copyright 2005-%d' % (datetime.today().year),
|
||||
ncontent)
|
||||
# Write the modified file.
|
||||
nf = open(name_file, "w")
|
||||
nf.write(ncontent)
|
||||
nf.close()
|
||||
|
||||
|
||||
def update_version(base_dir, version):
|
||||
@@ -157,3 +175,4 @@ if __name__ == "__main__":
|
||||
version = sys.argv[1]
|
||||
print ">>> Updating version number to \"%s\"" % version
|
||||
update_version(".", version)
|
||||
update_date(".")
|
||||
|
||||
@@ -135,7 +135,7 @@ APP_DISPLAY_NAME = "Zenmap"
|
||||
APP_WEB_SITE = "https://nmap.org/zenmap"
|
||||
APP_DOWNLOAD_SITE = "https://nmap.org/download.html"
|
||||
APP_DOCUMENTATION_SITE = "https://nmap.org/docs.html"
|
||||
APP_COPYRIGHT = "Copyright 2005-2016 Insecure.Com LLC"
|
||||
APP_COPYRIGHT = "Copyright 2005-2018 Insecure.Com LLC"
|
||||
|
||||
NMAP_DISPLAY_NAME = u"Nmap"
|
||||
NMAP_WEB_SITE = "https://nmap.org"
|
||||
|
||||
Reference in New Issue
Block a user