Cleanup and fixes to the relnotes handling.
This commit is contained in:
parent
20bf8e7297
commit
4acade37c2
@ -665,25 +665,13 @@ create_idb()
|
|||||||
pc[$pcpos]="opt.src"
|
pc[$pcpos]="opt.src"
|
||||||
let "pcpos = pcpos + 1"
|
let "pcpos = pcpos + 1"
|
||||||
fi
|
fi
|
||||||
# HACK: relnotes cannot be updated before auto_deps has run
|
|
||||||
# but auto_deps needs the idb file.
|
# We unconditionally assume that relnotes are installed now that we
|
||||||
# We'll create an empty placeholder so satisfy the code below that
|
# always use the global template as a fallback in auto_rel
|
||||||
# checks for releasenotes and updates the idb file.
|
add_files "${metaprefix}relnotes" opt.relnotes - root sys ""
|
||||||
# This snippet was taken from auto_rel and should be kept in sync
|
pc[$pcpos]="opt.relnotes"
|
||||||
for i in relnotes relnotes.${_os} relnotes.txt relnotes.${_os}.txt;
|
let "pcpos = pcpos + 1"
|
||||||
do
|
|
||||||
[ -r ${metadir}/${i} ] && rn=$i
|
|
||||||
done
|
|
||||||
if [ -r ${metadir}/${rn} ]; then
|
|
||||||
local relmetadir=${stagedir}${metainstalldir}relnotes/$topdir-$version-$pkgver
|
|
||||||
${__mkdir} -p $relmetadir
|
|
||||||
echo "" > ${relmetadir}/${topdir}.txt
|
|
||||||
fi
|
|
||||||
if [ -d "${stagedir}${metainstalldir}relnotes" ]; then # We have releasenotes, add them to idb file
|
|
||||||
add_files "${metaprefix}relnotes" opt.relnotes - root sys ""
|
|
||||||
pc[$pcpos]="opt.relnotes"
|
|
||||||
let "pcpos = pcpos + 1"
|
|
||||||
fi
|
|
||||||
# spec & idb files are added unconditionally
|
# spec & idb files are added unconditionally
|
||||||
pc[$pcpos]="opt.dist"
|
pc[$pcpos]="opt.dist"
|
||||||
# Add entries for the spec & idb files (opt.dist), they will be installed later, after they've actually been created
|
# Add entries for the spec & idb files (opt.dist), they will be installed later, after they've actually been created
|
||||||
@ -1051,9 +1039,9 @@ auto_rel()
|
|||||||
|
|
||||||
for i in relnotes relnotes.${_os} relnotes.txt relnotes.${_os}.txt;
|
for i in relnotes relnotes.${_os} relnotes.txt relnotes.${_os}.txt;
|
||||||
do
|
do
|
||||||
[ -r ${metadir}/${i} ] && rn=${metadir}/$i
|
[ -r ${metadir}/${i} ] && rn=${metadir}/${i}
|
||||||
done
|
done
|
||||||
if [ ! -r ${rn} ]; then
|
if [ -z ${rn} ]; then
|
||||||
echo "auto_rel: Using global relnotes template"
|
echo "auto_rel: Using global relnotes template"
|
||||||
rn=${BUILDPKG_BASE}/scripts/relnotes.template.irix
|
rn=${BUILDPKG_BASE}/scripts/relnotes.template.irix
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user