summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-05-21 18:48:33 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-05-21 18:48:33 +0000
commit435d7a09c664c04c05d0a10a28f20738c1db3079 (patch)
tree565ac4795a355f1fbbabe375667af5500512ee88
parentc6bc3f308b8ef04b228b7bb88e04276e0bcb8007 (diff)
downloadmidipix_build-435d7a09c664c04c05d0a10a28f20738c1db3079.tar.bz2
midipix_build-435d7a09c664c04c05d0a10a28f20738c1db3079.tar.xz
subr/pkg_install.subr:pkg_install(): create & append `${PKG_NAME}\n' to ${PREFIX}/pkglist.${PKG_BUILD_TYPE} (via midipix.)
-rw-r--r--subr/pkg_install.subr4
1 files changed, 4 insertions, 0 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr
index dd007abe..56e306c1 100644
--- a/subr/pkg_install.subr
+++ b/subr/pkg_install.subr
@@ -17,6 +17,10 @@ pkg_install() {
tar -C "${PKG_DESTDIR}" -cpf - . |\
gzip -c -9 - > "${PKG_BASE_DIR}/${PKG_NAME}.tgz"
fi;
+ if [ ! -e "${PREFIX}/pkglist.${PKG_BUILD_TYPE}" ]; then
+ touch "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
+ fi;
+ echo "${PKG_NAME}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
};
# vim:filetype=sh