fixed fix_libdir

This commit is contained in:
Дмитрий Левин 2002-10-02 16:08:55 +00:00
parent c4414a7928
commit 8c917e25d3

View File

@ -31,9 +31,10 @@ fix_libdir()
local libdir=`sed -ne "s/^libdir='\([^']*\)'\$/\1/pg" "$f" |tail -1`
local fname="${f#$RPM_BUILD_ROOT}"
local fdir="${fname%/*}"
fdir="${fdir#.}"
if [ "$fdir" != "$libdir" ]; then
subst -p "s,^libdir='$libdir'\$,libdir='$fdir',g"
echo "$fname: libdir: $libdir --> $fdir" >&2
subst -p "s,^libdir='$libdir'\$,libdir='$fdir',g" "$f"
echo "${fname#.}: libdir: $libdir --> $fdir" >&2
fi
}