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.
Commit
5c452f613d100bf581bfff40bc09e266ae72eec777538660140c63089ab3d823
Parent
50b56eec70a9315…
1 file changed
+7
| --- tools/fossil-makeinfo | ||
| +++ tools/fossil-makeinfo | ||
| @@ -183,10 +183,17 @@ | ||
| 183 | 183 | |
| 184 | 184 | # Add in the actual help for common commands |
| 185 | 185 | # WARNING: tail count is brittle |
| 186 | 186 | # tail command pops off the first fourteen lines, sed commands remove the last two lines. |
| 187 | 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 | + | |
| 188 | 195 | fossil help -v | tail -n +14 | sed '$d' | sed '$d' >workfile |
| 189 | 196 | |
| 190 | 197 | # swap out @ with @@ so texinfo doesn't barf |
| 191 | 198 | echo "Doubling up the @'s" |
| 192 | 199 | sed -i -e 's/@/@@/g' workfile |
| 193 | 200 |
| --- 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 |