summaryrefslogtreecommitdiffhomepage
path: root/vars.dist/dist_gitref.vars
diff options
context:
space:
mode:
authorLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2023-03-31 07:49:57 +0200
committerLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2023-03-31 07:49:57 +0200
commit80a5c9bcdb0199c8b0e608695fd04faa464cf6a9 (patch)
treeab7f2e1abbd8546bc47163e9bfc823d0f5454ca3 /vars.dist/dist_gitref.vars
parent196f004d57a260e3fbd27e614b079337c141b813 (diff)
downloadmidipix_build-80a5c9bcdb0199c8b0e608695fd04faa464cf6a9.tar.bz2
midipix_build-80a5c9bcdb0199c8b0e608695fd04faa464cf6a9.tar.xz
Make dist/*.dist regular vars files beneath vars.dist/.
Diffstat (limited to 'vars.dist/dist_gitref.vars')
-rw-r--r--vars.dist/dist_gitref.vars20
1 files changed, 20 insertions, 0 deletions
diff --git a/vars.dist/dist_gitref.vars b/vars.dist/dist_gitref.vars
new file mode 100644
index 00000000..e1f2152c
--- /dev/null
+++ b/vars.dist/dist_gitref.vars
@@ -0,0 +1,20 @@
+#
+# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de>
+# set +o errexit -o noglob -o nounset is assumed.
+#
+
+pkg_dist_gitref_all() {
+ local _pdga_group_name="${1}" _pdga_pkg_name="${2}" _pdga_restart_at="${3}";
+
+ (rtl_fileop cd "${MIDIPIX_BUILD_PWD}" &&\
+ git rev-parse HEAD > "${PREFIX}/build.gitref");
+ if [ "${?}" -eq 0 ]; then
+ ex_pkg_dispatch_send "step" "${_pdga_group_name}" "${_pdga_pkg_name}" "finish";
+ ex_pkg_state_set "${_pdga_pkg_name}" "finish";
+ return 0;
+ else
+ return 1;
+ fi;
+};
+
+# vim:filetype=sh textwidth=0