Fossil SCM
Added extra switch parsing. I still need to figure out how to get switches emitted without using '' around.
Commit
f127fc531bce7a8b57e603656ae5edf5a720a62ea293f7de0aaea6f03f4ab501
Parent
302bf06d894bd80…
1 file changed
+4
| --- tools/infoscript.bash | ||
| +++ tools/infoscript.bash | ||
| @@ -130,10 +130,14 @@ | ||
| 130 | 130 | gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile |
| 131 | 131 | fi |
| 132 | 132 | |
| 133 | 133 | # turns --switches into @option{--switches} |
| 134 | 134 | sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile |
| 135 | +# now do the same for places where there's -f|--force | |
| 136 | +sed -i -e 's/|--\([[:alnum:]-]\{1,\}\)/|@option\{--\1\}/g' workfile | |
| 137 | +# turns -switches into @option{-switches}. Usually starts with space | |
| 138 | +sed -i -e 's/ -\([[:alnum:]-]\{1,\}\)/ @option\{-\1\}/g' workfile | |
| 135 | 139 | # ... and adds it to the output file with some space |
| 136 | 140 | cat workfile >> fossil.texi |
| 137 | 141 | echo "" >> fossil.texi |
| 138 | 142 | |
| 139 | 143 | ##### Uncommon commands #### |
| 140 | 144 |
| --- tools/infoscript.bash | |
| +++ tools/infoscript.bash | |
| @@ -130,10 +130,14 @@ | |
| 130 | gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile |
| 131 | fi |
| 132 | |
| 133 | # turns --switches into @option{--switches} |
| 134 | sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile |
| 135 | # ... and adds it to the output file with some space |
| 136 | cat workfile >> fossil.texi |
| 137 | echo "" >> fossil.texi |
| 138 | |
| 139 | ##### Uncommon commands #### |
| 140 |
| --- tools/infoscript.bash | |
| +++ tools/infoscript.bash | |
| @@ -130,10 +130,14 @@ | |
| 130 | gsed -i -e 's/^##* \([a-z0-9-]\{1,\}\)/@node \1\n@section \1\n/' workfile |
| 131 | fi |
| 132 | |
| 133 | # turns --switches into @option{--switches} |
| 134 | sed -i -e 's/--\([[:alnum:]-]\{1,\}\)/@option\{--\1\}/g' workfile |
| 135 | # now do the same for places where there's -f|--force |
| 136 | sed -i -e 's/|--\([[:alnum:]-]\{1,\}\)/|@option\{--\1\}/g' workfile |
| 137 | # turns -switches into @option{-switches}. Usually starts with space |
| 138 | sed -i -e 's/ -\([[:alnum:]-]\{1,\}\)/ @option\{-\1\}/g' workfile |
| 139 | # ... and adds it to the output file with some space |
| 140 | cat workfile >> fossil.texi |
| 141 | echo "" >> fossil.texi |
| 142 | |
| 143 | ##### Uncommon commands #### |
| 144 |