Blame vars.dist/dist_gitref.vars

Lucio Andrés Illanes Albornoz (arab, vxp) eab6ce
#
8d7a8a
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂ­a Andrea Illanes Albornoz <lucia@luciaillanes.de>
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) eab6ce
#
Lucio Andrés Illanes Albornoz (arab, vxp) eab6ce
Lucio Andrés Illanes Albornoz efeeb0
pkg_dist_gitref_all() {
e9fa07
	local _pdga_group_name="${1}" _pdga_pkg_name="${2}" _pdga_restart_at="${3}";
e9fa07
e9fa07
	(rtl_fileop cd "${MIDIPIX_BUILD_PWD}" &&\
e9fa07
	 git rev-parse HEAD > "${PREFIX}/build.gitref");
8857c4
	if [ "${?}" -eq 0 ]; then
670f66
		ex_pkg_dispatch_send "step" "${_pdga_group_name}" "${_pdga_pkg_name}" "finish";
8857c4
		ex_pkg_state_set "${_pdga_pkg_name}" "finish";
8857c4
		return 0;
8857c4
	else
8857c4
		return 1;
8857c4
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) eab6ce
};
Lucio Andrés Illanes Albornoz (arab, vxp) eab6ce
64844b
# vim:filetype=sh textwidth=0