Use if test <condition> ; then ... fi

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9974 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-05-25 14:10:08 +00:00
parent 0f41db9697
commit 3dd40899d8

View File

@ -553,12 +553,12 @@ echo "creating doc/LaTeXConfig.lyx"
echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed
echo "s/@chk_docbook@/$chk_docbook/g" >> chkconfig.sed
test `uname -s | grep 'MINGW'` && {
if test `uname -s | grep 'MINGW'` ; then
# Before running chkconfig.sed, remove the trailing '\r'
# characters that can bugger up various versions of sed.
tr -d '\r' < chkconfig.sed > chkconfig2.sed
mv -f chkconfig2.sed chkconfig.sed
}
fi
sed -f chkconfig.sed "${srcdir}"/doc/LaTeXConfig.lyx.in >doc/LaTeXConfig.lyx