File: cklatex

package info (click to toggle)
pyopenssl 0.13-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,752 kB
  • sloc: ansic: 7,372; python: 6,688; perl: 3,089; xml: 693; makefile: 191; sh: 54; lisp: 13; sed: 2
file content (26 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh
#  -*- ksh -*-

# This script *helps* locate lines of normal content that end in '}';
# this is useful since LaTeX2HTML (at least the old version that we
# use) breaks on many lines that end that way.
#
# Usage: cklatex files... | less
#
# *Read* the output looking for suspicious lines!

grep -n "[^ 	]}\$" $@ | \
 grep -v '\\begin{' | \
 grep -v '\\end{' | \
 grep -v '\\input{' | \
 grep -v '\\documentclass{' | \
 grep -v '\\title{' | \
 grep -v '\\chapter{' | \
 grep -v '\\chapter\*{' | \
 grep -v '\\section{' | \
 grep -v '\\subsection{' | \
 grep -v '\\subsubsection{' | \
 grep -v '\\sectionauthor{' | \
 grep -v '\\moduleauthor{'

exit $?