From b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 26 Feb 2026 10:05:59 +0000 Subject: overhaul --- preprocess | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'preprocess') diff --git a/preprocess b/preprocess index a46b0a8..91de3bb 100755 --- a/preprocess +++ b/preprocess @@ -1,9 +1,8 @@ #!/bin/bash -pushd `dirname $0` > /dev/null -P=`pwd -P` +pushd "$(dirname "$0")" > /dev/null +P="$(pwd -P)" popd > /dev/null LANG=$1 $P/no-non-printables | sed "s|[-,\.]\{4,\}|...|g" | $P/htmlentities 2>htmlentities.$LANG.err | $P/normalize-punctuation 2>normalize-punctuation.$LANG.err | $P/tokenizer-no-escape.perl -a -b -threads 1 -l $LANG 2>tokenizer.$LANG.err | $P/lowercase.perl 2>lowercase.$LANG.err - -- cgit v1.2.3