mirror of
https://github.com/9001/copyparty.git
synced 2026-10-05 22:04:38 +01:00
genhelp: FULL_HELP
This commit is contained in:
@@ -17,6 +17,11 @@ cd ../dist
|
||||
|
||||
kwds='-bind -accounts -auth -auth-ord -flags -handlers -hooks -idp -urlform -exp -ls -dbd -chmod -pwhash -zm'
|
||||
|
||||
export PRTY_FULL_HELP=1
|
||||
export PRTY_NO_PARAMIKO=1
|
||||
export PRTY_NO_VIPS=1
|
||||
export PRTY_NO_PIL=1
|
||||
|
||||
html() {
|
||||
for a in '' $kwds; do
|
||||
echo "html$a" >&2
|
||||
|
||||
+11
-1
@@ -50,6 +50,7 @@ def cnv(src):
|
||||
in_cores = 0
|
||||
in_hash_mt = False
|
||||
in_th_ram_max = 0
|
||||
in_th_bwrap = 0
|
||||
|
||||
while True:
|
||||
ln = next(src)
|
||||
@@ -106,9 +107,18 @@ def cnv(src):
|
||||
in_th_ram_max = 3
|
||||
if in_th_ram_max:
|
||||
in_th_ram_max -= 1
|
||||
ln = re.sub(r">[0-9]{1,2}\.[0-9]<", ">dynamic<", ln)
|
||||
ln = re.sub(r">[0-9]{1,2}\.[0-9]<", ">depends-on-available-ram<", ln)
|
||||
if t != ln:
|
||||
in_th_ram_max = 0
|
||||
if "--th-bwrap CMD" in ln:
|
||||
in_th_bwrap = 5
|
||||
if in_th_bwrap:
|
||||
in_th_bwrap -= 1
|
||||
ln = re.sub(r">[^< ]+/bwrap .*", ">depends-on-system-env)</span>", ln)
|
||||
if t == ln:
|
||||
if "</span>" in ln:
|
||||
in_th_bwrap = 0
|
||||
continue
|
||||
m = re.search(r"^# (.* help page)(.*)", ln)
|
||||
if m:
|
||||
zs1, zs2 = m.groups()
|
||||
|
||||
Reference in New Issue
Block a user