Cross Reference: src2texi
xref
: /
osnet-11
/
usr
/
src
/
grub
/
grub-0.97
/
docs
/
src2texi
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1
N/A
#! /
bin
/
sh
1
N/A
#
1
N/A
# Convert a source file to a TeXinfo file. Stolen from glibc.
1
N/A
#
1
N/A
# Usage: src2texi SRCDIR SRC TEXI
1
N/A
1
N/A
dir
=$
1
1
N/A
src
=
`
basename
$
2
`
1
N/A
texi
=
`
basename
$
3
`
1
N/A
1
N/A
sed
-e
's,[{}],@&,g'
\
1
N/A
-e
's,/\*\(@.*\)\*/,\1,g'
\
1
N/A
-e
's,/\* *,/* @r{,g'
-e
's, *\*/,} */,'
\
1
N/A
-e
's/\(@[a-z][a-z]*\)@{\([^}]*\)@}/\1{\2}/g'
\
1
N/A
${
dir
}/${
src
} |
expand
> ${
texi
}.
new
1
N/A
mv
-f ${
texi
}.
new
${
dir
}/${
texi
}