Skip to content

Switch to basic regexen because sed's flag to turn on extended regex is non-portable. #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/indexheader.sed
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
s/(.*) indexheader/\\par \\textbf\{\1\}\\par/
s/\(.*\) indexheader/\\par \\textbf\{\1\}\\par/

s/(.*) xref/\1\\quad\\ref\{\1\}\\\\/
s/\(.*\) xref/\1\\quad\\ref\{\1\}\\\\/
Empty file modified tools/makegram
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions tools/makexref
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export LC_ALL=C
cp ../tools/xrefbegin.tex xref.tex
cp ../tools/alphabet xref.tmp
cat $(cat ../tools/std.files) | sed -n -r -f ../tools/xref.sed >> xref.tmp
sort -f < xref.tmp | sed -r -f ../tools/indexheader.sed >> xref.tex
cat $(cat ../tools/std.files) | sed -n -f ../tools/xref.sed >> xref.tmp
sort -f < xref.tmp | sed -f ../tools/indexheader.sed >> xref.tex
cat ../tools/xrefend.tex >> xref.tex
8 changes: 4 additions & 4 deletions tools/xref.sed
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# process ordinary section headers
s/^\\rSec[[:digit:]]\[([^]]*)\].*$/\1 xref/p
s/^\\rSec[[:digit:]]\[\([^]]*\)\].*$/\1 xref/p

# process definitions
s/^\\definition\{[^}]*\}\{([^}]*)\}.*$/\1 xref/p
s/^\\definition{[^}]*}{\([^}]*\)}.*$/\1 xref/p

# process informative annex headers
s/^\\infannex\{([^}]*)\}.*$/\1 xref/p
s/^\\infannex{\([^}]*\)}.*$/\1 xref/p

# process normative annex headers
s/^\\normannex\{([^}]*)\}.*$/\1 xref/p
s/^\\normannex{\([^}]*\)}.*$/\1 xref/p