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";; *) infile=`pwd`/"$infile";;
esac esac
binfile=`basename "$infile"` ln -s "$infile" "$workdir/input.lyx" || exit 1
ln -s "$infile" "$workdir/$binfile" || exit 1 lyxfile=$workdir/input.lyx
lyxfile=$workdir/"$binfile" textfile=$workdir/input.txt
textfile=$workdir/`basename "$binfile" .lyx`.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 # 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, # Need the lyx version. After some point -export prints utf-8,
# whatever the input version # whatever the input version