diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2023-02-04 12:21:02 +0100 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2023-02-07 10:28:43 +0000 |
commit | 077ff26b682b7d31ea85e8adf66fc80432c876e8 (patch) | |
tree | a860046645fdd7be3db424bc12da23a3242a35cd /bin | |
parent | 00659bcdbbb167596e6fd18e283a54819dd6fe91 (diff) |
Fix links in DispatchCommands wiki page
The modified python script generates the
https://wiki.documentfoundation.org/Development/DispatchCommands
wiki page.
The https://gerrit.libreoffice.org/c/core/+/142723
commit has broken the links to OpenGrok in the last
column ("Source files") of the tables and also the
list of files at the bottom of the page.
The actual page in the wiki, after upgrade to LO 7.5
has been generated with the modified version of the script.
Change-Id: I2ec674f4257229e543a7797fddd2f7a142a743f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146553
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/list-dispatch-commands.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/list-dispatch-commands.py b/bin/list-dispatch-commands.py index f4832f12b777..db8bff6e7d95 100755 --- a/bin/list-dispatch-commands.py +++ b/bin/list-dispatch-commands.py @@ -22,7 +22,7 @@ import os srcdir = os.path.dirname(os.path.realpath(__file__)) + '/..' # go up from /bin builddir = os.getcwd() -REPO = 'https://opengrok.libreoffice.org/xref/core/' +REPO = 'https://opengrok.libreoffice.org/xref/core' BLACKLIST = ('_SwitchViewShell0', '_SwitchViewShell1', '_SwitchViewShell2', '_SwitchViewShell3', '_SwitchViewShell4') @@ -344,9 +344,9 @@ def print_output(all_commands): xcufile, xculinenumber, hxxfile, hxxlinenumber, sdifile, sdilinenumber = 2, 3, 8, 10, 14, 16 src = '' if cmd[xcufile] >= 0: - src += '[' + REPO + XCU_FILES[cmd[xcufile]] + '#' + str(cmd[xculinenumber]) + ' XCU]' + src += '[' + REPO + XCU_FILES[cmd[xcufile]].replace(srcdir, '') + '#' + str(cmd[xculinenumber]) + ' XCU]' if cmd[sdifile] >= 0: - src += ' [' + REPO + SDI_FILES[cmd[sdifile]] + '#' + str(cmd[sdilinenumber]) + ' SDI]' + src += ' [' + REPO + SDI_FILES[cmd[sdifile]].replace(srcdir, '') + '#' + str(cmd[sdilinenumber]) + ' SDI]' if cmd[hxxfile] >= 0: file = str(cmd[hxxfile] + 1 + len(XCU_FILES) + len(SDI_FILES)) src += ' <span title="File (' + file + ') line ' + str(cmd[hxxlinenumber]) + '">[[#hxx' + file + '|HXX]]</span>' @@ -398,15 +398,15 @@ def print_output(all_commands): fn = 0 for i in range(len(XCU_FILES)): fn += 1 - print(f'({fn}) {REPO}{XCU_FILES[i]}\n') + print(f'({fn}) {REPO}{XCU_FILES[i]}\n'.replace(srcdir, '')) print('\n') for i in range(len(SDI_FILES)): fn += 1 - print(f'({fn}) {REPO}{SDI_FILES[i]}\n') + print(f'({fn}) {REPO}{SDI_FILES[i]}\n'.replace(srcdir, '')) print('\n') for i in range(len(HXX_FILES)): fn += 1 - print(f'<span id="hxx{fn}">({fn}) {HXX_FILES[i][2:]}</span>\n') + print(f'<span id="hxx{fn}">({fn}) {HXX_FILES[i]}</span>\n'.replace(builddir, '')) print('</small>') |