13 lines
691 B
Plaintext
13 lines
691 B
Plaintext
|
if test -s %{_texmfconfdir}/web2c/fmtutil.cnf.rpmnew ; then
|
||
|
old=$(mktemp ${TMPDIR-${TEMP-${TMP-/tmp}}}/pool-old.XXXXXXXX) || exit -2
|
||
|
new=$(mktemp ${TMPDIR-${TEMP-${TMP-/tmp}}}/pool-new.XXXXXXXX) || exit -2
|
||
|
sed -rn '\@^TEXMFMAIN\s*=@p;\@Part 3:@,${\@^[a-z]@p}' < %{_texmfconfdir}/web2c/fmtutil.cnf.rpmnew > $new
|
||
|
sed -rn '\@^TEXMFMAIN\s*=@p;\@Part 3:@,${\@^[a-z]@p}' < %{_texmfconfdir}/web2c/fmtutil.cnf > $old
|
||
|
if ! cmp -s $new $old; then
|
||
|
mv %{_texmfconfdir}/web2c/fmtutil.cnf %{_texmfconfdir}/web2c/fmtutil.cnf.rpmold
|
||
|
mv %{_texmfconfdir}/web2c/fmtutil.cnf.rpmnew %{_texmfconfdir}/web2c/fmtutil.cnf
|
||
|
> /var/run/texlive/run-fmtutil.refresh
|
||
|
fi
|
||
|
rm -f $new $old
|
||
|
fi
|