Fossil SCM
Very shaky attempt at correcting help text options list-out. It's not satisfactory, but it's a start.
Commit
58ecb3a4d2c6d6cf3e3ae9c7e7094192b89dd07d559c80abce7553a031af42be
Parent
a739e9fea18b1e3…
1 file changed
+8
| --- tools/fossil-makeinfo | ||
| +++ tools/fossil-makeinfo | ||
| @@ -203,10 +203,12 @@ | ||
| 203 | 203 | else |
| 204 | 204 | # We'll assume we're on a BSD here, even though this won't always be true |
| 205 | 205 | gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile |
| 206 | 206 | fi |
| 207 | 207 | |
| 208 | +# adds linebreak to texinfo output per option line. These start with four spaces. | |
| 209 | +sed -i -e 's/^ /@*/' workfile | |
| 208 | 210 | # turns --switches into @option{--switches} |
| 209 | 211 | sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile |
| 210 | 212 | # now do the same for places where there's -f|--force |
| 211 | 213 | sed -i -e 's/|--\([[:alnum:]-]\{1,\}\)/|@option\{--\1\}/g' workfile |
| 212 | 214 | # turns -switches into @option{-switches}. Usually starts with space |
| @@ -260,10 +262,12 @@ | ||
| 260 | 262 | else |
| 261 | 263 | # We'll assume we're on a BSD here, even though this won't always be true |
| 262 | 264 | gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile |
| 263 | 265 | fi |
| 264 | 266 | |
| 267 | +# adds linebreak to texinfo output per option line. These start with four spaces. | |
| 268 | +sed -i -e 's/^ /@*/' workfile | |
| 265 | 269 | # turns --switches into @option{--switches} |
| 266 | 270 | sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile |
| 267 | 271 | |
| 268 | 272 | # ... and adds it to the output file with a spacer line |
| 269 | 273 | cat workfile >> fossil.texi |
| @@ -318,10 +322,12 @@ | ||
| 318 | 322 | else |
| 319 | 323 | # We'll assume we're on a BSD here, even though this won't always be true |
| 320 | 324 | gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile |
| 321 | 325 | fi |
| 322 | 326 | |
| 327 | +# adds linebreak to texinfo output per option line. These start with four spaces. | |
| 328 | +sed -i -e 's/^ /@*/' workfile | |
| 323 | 329 | # turns --switches into @option{--switches} |
| 324 | 330 | sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile |
| 325 | 331 | |
| 326 | 332 | # ... and adds it to the output file with a spacer line |
| 327 | 333 | cat workfile >> fossil.texi |
| @@ -390,10 +396,12 @@ | ||
| 390 | 396 | sed -i -e 's/{/@{/g' -e 's/}/@}/g' workfile |
| 391 | 397 | else |
| 392 | 398 | gsed -i -e 's/\{/@\{/g' -e 's/\}/@\}/g' workfile |
| 393 | 399 | fi |
| 394 | 400 | |
| 401 | +# adds linebreak to texinfo output per option line. These start with four spaces. | |
| 402 | +sed -i -e 's/^ /@*/' workfile | |
| 395 | 403 | echo "Swapping out --switches for @option{--switches}" |
| 396 | 404 | # turns --switches into @option{--switches} |
| 397 | 405 | if [[ ${MYOS} == "Linux" ]]; then |
| 398 | 406 | sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile |
| 399 | 407 | else |
| 400 | 408 |
| --- 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 |