- Fix build for F8, don't leave references to RPM_BUILD_ROOT in the

encodings output. (#251058)
This commit is contained in:
Adam Jackson 2007-08-27 20:36:31 +00:00
parent dd3f090902
commit ce13ac6e59

View File

@ -401,10 +401,12 @@ done
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173875 # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173875
# https://bugs.freedesktop.org/show_bug.cgi?id=6028 # https://bugs.freedesktop.org/show_bug.cgi?id=6028
{ {
ENCODINGSDIR=%{_datadir}/X11/fonts/encodings ENCODINGSDIR=$RPM_BUILD_ROOT%{_datadir}/X11/fonts/encodings
pushd "$RPM_BUILD_ROOT${ENCODINGSDIR}" &> /dev/null pushd "${ENCODINGSDIR}" &> /dev/null
mkfontscale -n -e "${ENCODINGSDIR}" -e "${ENCODINGSDIR}/large" mkfontscale -n -e "${ENCODINGSDIR}" -e "${ENCODINGSDIR}/large"
popd &> /dev/null sed -i "s@$RPM_BUILD_ROOT@@" encodings.dir
sed -i "s@$RPM_BUILD_ROOT@@" large/encodings.dir
popd &> /dev/null
} }