initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
29
libs/wxWidgets-3.3.1/3rdparty/pcre/maint/UpdateRelease.py
vendored
Executable file
29
libs/wxWidgets-3.3.1/3rdparty/pcre/maint/UpdateRelease.py
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
# Script to update all the hardcoded release numbers in the source tree.
|
||||
# - Documentation manpages.
|
||||
# - Bazel MODULE file.
|
||||
|
||||
# This script should be run in the main PCRE2 directory.
|
||||
|
||||
import glob
|
||||
|
||||
from UpdateCommon import update_file, CURRENT_RELEASE
|
||||
|
||||
def update_man_version(filename):
|
||||
print(' Updating %s' % filename)
|
||||
update_file(filename, r'(.TH.*? )"PCRE2 .*?"', '\\1"PCRE2 %s"' % CURRENT_RELEASE)
|
||||
|
||||
print('Updating man pages')
|
||||
|
||||
# doc/*.1
|
||||
for filename in glob.glob('doc/*.1'):
|
||||
update_man_version(filename)
|
||||
|
||||
# doc/*.3
|
||||
for filename in glob.glob('doc/*.3'):
|
||||
update_man_version(filename)
|
||||
|
||||
# MODULE.bazel
|
||||
print('Updating MODULE.bazel')
|
||||
update_file('MODULE.bazel', r'(?m)^ version = ".*?"', ' version = "%s"' % CURRENT_RELEASE)
|
||||
Reference in New Issue
Block a user