lyx_mirror/lib/build-listerrors
Allan Rae ebfcf1c0e7 get builddir!=srcdir compiling working; allow successful make even without noweb installed; fix picky compiler warnings in xforms/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1078 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-04 03:17:36 +00:00

31 lines
589 B
Bash
Executable File

#!/bin/sh
#
# Attempt to build listerrors (see examples/Literate.lyx) at build-time
#
# Author: Kayvan Sylvan <kayvan@sylvan.com>
#
# Assume notangle is on the path
if [ $# -eq 1 ]
then
dir=$1
else
dir=.
fi
if [ -r ../src/lyx ]
then
lyx=../src/lyx
else
# Assumed to be on the path
lyx=lyx
fi
$lyx --export nw $dir/examples/Literate.lyx
# if no literate support stuff is installed nothing will be output
if [ -f $dir/examples/Literate.nw ]
then
mv $dir/examples/Literate.nw Literate.nw
which notangle 2>/dev/null && notangle -Rbuild-script Literate.nw | sh
fi