* bootstrap.conf: Make 'sed' options more portable

'sed -i' works differently on FreeBSD.

Reported-by: Mojca Miklavec
This commit is contained in:
Tim Rühsen 2017-04-18 10:43:20 +02:00
parent 92bfe2a2e4
commit 0004d3ec22

View File

@ -159,8 +159,8 @@ bootstrap_post_import_hook ()
if [ $GPERF_VER -lt 30100 ]; then
echo "Creating lib/unicase/special-casing-table.h for gperf < 3.1"
gperf -m 10 lib/unicase/special-casing-table.gperf > lib/unicase/special-casing-table.h-t && \
mv lib/unicase/special-casing-table.h-t lib/unicase/special-casing-table.h
sed -i "s/gl_unicase_special_lookup.*/gl_unicase_special_lookup\ \(const char \*str, size_t len\)/g" lib/unicase/special-casing-table.h
gperf -m 10 lib/unicase/special-casing-table.gperf | \
sed -e "s/gl_unicase_special_lookup.*/gl_unicase_special_lookup\ \(const char \*str, size_t len\)/g" \
> lib/unicase/special-casing-table.h
fi
}