ALT Linux repositórios
Group :: Edição
RPM: lyx
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
#!/bin/sh
# Written by Vitaly Lipatov <lav@etersoft.ru>
# Lists LyX file converted to plain text
# you can use stdin or first argument as input filename
FILENAME=`mktemp`
if [ -z "$1" -o "$1" == "-" ]
then
cat > $FILENAME.lyx
else
cp -f "$1" $FILENAME.lyx
fi
lyx $FILENAME.lyx -e text 2>/dev/null
cat $FILENAME.txt
rm -f $FILENAME.{lyx,txt}