2
0

Fix build script for libs that have no INSTALL file.

This commit is contained in:
Maarten Billemont 2019-06-07 18:24:07 -04:00
parent feac039bc4
commit 4521c4f919

View File

@ -132,8 +132,10 @@ _prepare_config() {
if [[ $platform = windows ]]; then :
else
# autoreconf installs a useless INSTALL documentation stub that can overwrite repo docs.
[[ -e INSTALL ]] && mv INSTALL{,~}
autoreconf --verbose --install --force 2> >(sed 's/^\([^:]*\):[0-9]\{1,\}: /\1: /')
[[ -e .git ]] && git checkout @ -- INSTALL # autoreconf installs a useless INSTALL documentation stub that can overwrite repo docs.
[[ -e INSTALL~ ]] && mv INSTALL{~,}
fi
touch "$prefix/out/.prepared"