Fossil SCM

Very shaky attempt at correcting help text options list-out. It's not satisfactory, but it's a start.

brickviking 2025-03-01 20:33 bv-infotool
Commit 58ecb3a4d2c6d6cf3e3ae9c7e7094192b89dd07d559c80abce7553a031af42be
1 file changed +8
--- tools/fossil-makeinfo
+++ tools/fossil-makeinfo
@@ -203,10 +203,12 @@
203203
else
204204
# We'll assume we're on a BSD here, even though this won't always be true
205205
gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
206206
fi
207207
208
+# adds linebreak to texinfo output per option line. These start with four spaces.
209
+sed -i -e 's/^ /@*/' workfile
208210
# turns --switches into @option{--switches}
209211
sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
210212
# now do the same for places where there's -f|--force
211213
sed -i -e 's/|--\([[:alnum:]-]\{1,\}\)/|@option\{--\1\}/g' workfile
212214
# turns -switches into @option{-switches}. Usually starts with space
@@ -260,10 +262,12 @@
260262
else
261263
# We'll assume we're on a BSD here, even though this won't always be true
262264
gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
263265
fi
264266
267
+# adds linebreak to texinfo output per option line. These start with four spaces.
268
+sed -i -e 's/^ /@*/' workfile
265269
# turns --switches into @option{--switches}
266270
sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
267271
268272
# ... and adds it to the output file with a spacer line
269273
cat workfile >> fossil.texi
@@ -318,10 +322,12 @@
318322
else
319323
# We'll assume we're on a BSD here, even though this won't always be true
320324
gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
321325
fi
322326
327
+# adds linebreak to texinfo output per option line. These start with four spaces.
328
+sed -i -e 's/^ /@*/' workfile
323329
# turns --switches into @option{--switches}
324330
sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
325331
326332
# ... and adds it to the output file with a spacer line
327333
cat workfile >> fossil.texi
@@ -390,10 +396,12 @@
390396
sed -i -e 's/{/@{/g' -e 's/}/@}/g' workfile
391397
else
392398
gsed -i -e 's/\{/@\{/g' -e 's/\}/@\}/g' workfile
393399
fi
394400
401
+# adds linebreak to texinfo output per option line. These start with four spaces.
402
+sed -i -e 's/^ /@*/' workfile
395403
echo "Swapping out --switches for @option{--switches}"
396404
# turns --switches into @option{--switches}
397405
if [[ ${MYOS} == "Linux" ]]; then
398406
sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
399407
else
400408
--- tools/fossil-makeinfo
+++ tools/fossil-makeinfo
@@ -203,10 +203,12 @@
203 else
204 # We'll assume we're on a BSD here, even though this won't always be true
205 gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
206 fi
207
 
 
208 # turns --switches into @option{--switches}
209 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
210 # now do the same for places where there's -f|--force
211 sed -i -e 's/|--\([[:alnum:]-]\{1,\}\)/|@option\{--\1\}/g' workfile
212 # turns -switches into @option{-switches}. Usually starts with space
@@ -260,10 +262,12 @@
260 else
261 # We'll assume we're on a BSD here, even though this won't always be true
262 gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
263 fi
264
 
 
265 # turns --switches into @option{--switches}
266 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
267
268 # ... and adds it to the output file with a spacer line
269 cat workfile >> fossil.texi
@@ -318,10 +322,12 @@
318 else
319 # We'll assume we're on a BSD here, even though this won't always be true
320 gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
321 fi
322
 
 
323 # turns --switches into @option{--switches}
324 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
325
326 # ... and adds it to the output file with a spacer line
327 cat workfile >> fossil.texi
@@ -390,10 +396,12 @@
390 sed -i -e 's/{/@{/g' -e 's/}/@}/g' workfile
391 else
392 gsed -i -e 's/\{/@\{/g' -e 's/\}/@\}/g' workfile
393 fi
394
 
 
395 echo "Swapping out --switches for @option{--switches}"
396 # turns --switches into @option{--switches}
397 if [[ ${MYOS} == "Linux" ]]; then
398 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
399 else
400
--- tools/fossil-makeinfo
+++ tools/fossil-makeinfo
@@ -203,10 +203,12 @@
203 else
204 # We'll assume we're on a BSD here, even though this won't always be true
205 gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
206 fi
207
208 # adds linebreak to texinfo output per option line. These start with four spaces.
209 sed -i -e 's/^ /@*/' workfile
210 # turns --switches into @option{--switches}
211 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
212 # now do the same for places where there's -f|--force
213 sed -i -e 's/|--\([[:alnum:]-]\{1,\}\)/|@option\{--\1\}/g' workfile
214 # turns -switches into @option{-switches}. Usually starts with space
@@ -260,10 +262,12 @@
262 else
263 # We'll assume we're on a BSD here, even though this won't always be true
264 gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
265 fi
266
267 # adds linebreak to texinfo output per option line. These start with four spaces.
268 sed -i -e 's/^ /@*/' workfile
269 # turns --switches into @option{--switches}
270 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
271
272 # ... and adds it to the output file with a spacer line
273 cat workfile >> fossil.texi
@@ -318,10 +322,12 @@
322 else
323 # We'll assume we're on a BSD here, even though this won't always be true
324 gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile
325 fi
326
327 # adds linebreak to texinfo output per option line. These start with four spaces.
328 sed -i -e 's/^ /@*/' workfile
329 # turns --switches into @option{--switches}
330 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
331
332 # ... and adds it to the output file with a spacer line
333 cat workfile >> fossil.texi
@@ -390,10 +396,12 @@
396 sed -i -e 's/{/@{/g' -e 's/}/@}/g' workfile
397 else
398 gsed -i -e 's/\{/@\{/g' -e 's/\}/@\}/g' workfile
399 fi
400
401 # adds linebreak to texinfo output per option line. These start with four spaces.
402 sed -i -e 's/^ /@*/' workfile
403 echo "Swapping out --switches for @option{--switches}"
404 # turns --switches into @option{--switches}
405 if [[ ${MYOS} == "Linux" ]]; then
406 sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile
407 else
408

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button