tutorials.sed 430 B

1234567891011121314
  1. # Page start and end are delimited by /** and **/
  2. # we keep the end unchanged, the header is extended
  3. s/\/\*\* Example \(0*\)\([0-9]*\) \(.*\)$/\/\*\* \\page example\1\2 Tutorial \2: \3\n \\image html \"\1\2shot.jpg\"\n \\image latex \"\1\2shot.jpg\"/
  4. # All other comments start and end code sections
  5. s/\([^\*]\)\*\//\1\\code/
  6. s/^\*\//\\code/
  7. s/\/\*\([^\*]\)/\\endcode \1/
  8. s/\/\*$/\\endcode\n/
  9. #remove DOS line endings
  10. s/\r//g