fix 8bit file name processing

This commit is contained in:
Jean-Francois Dockes 2012-10-06 12:00:05 +02:00
parent ff2e12f149
commit 7037e1ca38

View File

@ -131,15 +131,14 @@ case "$infile" in
*) infile=`pwd`/"$infile";;
esac
binfile=`basename "$infile"`
ln -s "$infile" "$workdir/$binfile" || exit 1
lyxfile=$workdir/"$binfile"
textfile=$workdir/`basename "$binfile" .lyx`.txt
ln -s "$infile" "$workdir/input.lyx" || exit 1
lyxfile=$workdir/input.lyx
textfile=$workdir/input.txt
#echo binfile: $binfile;echo lyxfile: $lyxfile ; ls -l $lyxfile; echo textfile: $textfile
#echo lyxfile: $lyxfile ; ls -l $lyxfile; echo textfile: $textfile
# Run lyx --export
lyx --export text "$lyxfile" || senderror "lyx --export not working"
lyx --export text "$lyxfile" || senderror "lyx --export text "$lyxfile" failed"
# Need the lyx version. After some point -export prints utf-8,
# whatever the input version