Fallback to the global relnotes template if it's missing from metadir.

(Note huge diff because a large block of code was reindented).
This commit is contained in:
Tom G. Christensen 2008-11-11 18:51:50 +00:00
parent 4c815f5742
commit 34bfe8e9bb

View File

@ -1038,9 +1038,12 @@ auto_rel()
for i in relnotes relnotes.${_os} relnotes.txt relnotes.${_os}.txt;
do
[ -r ${metadir}/${i} ] && rn=$i
[ -r ${metadir}/${i} ] && rn=${metadir}/$i
done
if [ -r ${metadir}/${rn} ]; then
if [ ! -r ${rn} ]; then
echo "auto_rel: Using global relnotes template"
rn=${BUILDPKG_BASE}/scripts/relnotes.template.irix
fi
local relmetadir=${stagedir}${metainstalldir}relnotes/$topdir-$version-$pkgver
# compute configure info for relnotes
local cf="$(_upls $configure_args)"
@ -1106,9 +1109,6 @@ auto_rel()
-e "s;%%ENVIRONMENT%%;${extracted_env};g" \
-e "s;%%DEPENDENCIES%%;${deps};g" \
${metadir}/${rn} > "$relmetadir/${topdir}.txt"
else
echo "auto_rel: No release notes found!"
fi
}
# auto_dist(): Add idb & spec files to stagedir