~ubuntu-branches/ubuntu/hardy/luatex/hardy

« back to all changes in this revision

Viewing changes to src/texk/add-info-toc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2007-09-24 12:56:11 UTC
  • Revision ID: james.westby@ubuntu.com-20070924125611-a8ge689azbptxvla
Tags: upstream-0.11.2
ImportĀ upstreamĀ versionĀ 0.11.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Public domain.  Originally written 1994, Karl Berry.
 
3
        
 
4
temp=${TMPDIR-/tmp}/ait.$$
 
5
 
 
6
echo Contents: >$temp
 
7
echo >>$temp
 
8
 
 
9
awk '
 
10
        { prevline = line; line = $0 }
 
11
/^\*+$/ { print prevline }
 
12
/^=+$/  { print "  " prevline }
 
13
/^-+$/  { print "    " prevline }
 
14
/^\.+$/ { print "      " prevline }
 
15
' $*>>$temp
 
16
 
 
17
echo >>$temp
 
18
echo >>$temp
 
19
cat $* >>$temp
 
20
 
 
21
mv $temp $1