Fossil SCM

Added a quick note for the future. No change to code. In the future, we'd like to be able to use tools available in a common Linux/BSD environment to search for the phrase "Options:" and insert the texinfo commands "@table @options", after which we turn each of the individual options into @item lines. I haven't worked out how to do this yet, though closing the table would be fairly standard.

brickviking 2025-10-30 12:11 bv-infotool
Commit 5c452f613d100bf581bfff40bc09e266ae72eec777538660140c63089ab3d823
1 file changed +7
--- tools/fossil-makeinfo
+++ tools/fossil-makeinfo
@@ -183,10 +183,17 @@
183183
184184
# Add in the actual help for common commands
185185
# WARNING: tail count is brittle
186186
# tail command pops off the first fourteen lines, sed commands remove the last two lines.
187187
echo "Fossil output common help to workfile"
188
+
189
+# I'd like if this could start at where the "Options:" is, and finish at the next
190
+# pair of blank lines.
191
+#printf "@table @option
192
+#
193
+#" >> fossil.texi
194
+
188195
fossil help -v | tail -n +14 | sed '$d' | sed '$d' >workfile
189196
190197
# swap out @ with @@ so texinfo doesn't barf
191198
echo "Doubling up the @'s"
192199
sed -i -e 's/@/@@/g' workfile
193200
--- tools/fossil-makeinfo
+++ tools/fossil-makeinfo
@@ -183,10 +183,17 @@
183
184 # Add in the actual help for common commands
185 # WARNING: tail count is brittle
186 # tail command pops off the first fourteen lines, sed commands remove the last two lines.
187 echo "Fossil output common help to workfile"
 
 
 
 
 
 
 
188 fossil help -v | tail -n +14 | sed '$d' | sed '$d' >workfile
189
190 # swap out @ with @@ so texinfo doesn't barf
191 echo "Doubling up the @'s"
192 sed -i -e 's/@/@@/g' workfile
193
--- tools/fossil-makeinfo
+++ tools/fossil-makeinfo
@@ -183,10 +183,17 @@
183
184 # Add in the actual help for common commands
185 # WARNING: tail count is brittle
186 # tail command pops off the first fourteen lines, sed commands remove the last two lines.
187 echo "Fossil output common help to workfile"
188
189 # I'd like if this could start at where the "Options:" is, and finish at the next
190 # pair of blank lines.
191 #printf "@table @option
192 #
193 #" >> fossil.texi
194
195 fossil help -v | tail -n +14 | sed '$d' | sed '$d' >workfile
196
197 # swap out @ with @@ so texinfo doesn't barf
198 echo "Doubling up the @'s"
199 sed -i -e 's/@/@@/g' workfile
200

Keyboard Shortcuts

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