Start the switch to pattern rules in makefile
All checks were successful
the build was successful

This commit is contained in:
2019-03-10 15:39:23 +01:00
parent 22ead941c7
commit 9537759d6a
7 changed files with 86 additions and 120 deletions

View File

@@ -7,7 +7,6 @@ inc_processor=true
process_file(){
infile="$1"
processor="$2"
olang="$3"
shortname=$(get_shortname "$infile")
lang=$(get_language "$infile")
@@ -17,7 +16,7 @@ process_file(){
# of the commands fails.
set -o pipefail
build_xmlstream "$shortname" "$lang" "$olang" \
build_xmlstream "$shortname" "$lang" \
| xsltproc "$processor" - \
| sed -r ':X; N; $!bX;
s;<[\r\n\t ]*(a|link)([\r\n\t ][^>]*)?[\r\n\t ]href="(https?:)?//'"$domain"'/([^"]*)";<\1\2 href="/\4";gI