Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.8 19 lines 301 B view raw
1#!/bin/bash 2# 3# Convert a template file into something like RST 4# 5# fix <function> 6# feed to pandoc 7# fix \_ 8# title line? 9# 10 11in=$1 12rst=$2 13tmp=$rst.tmp 14 15cp $in $tmp 16sed --in-place -f convert_template.sed $tmp 17pandoc -s -S -f docbook -t rst -o $rst $tmp 18sed --in-place -f post_convert.sed $rst 19rm $tmp