7 GIT_TOPLEVEL_DIR
=$
(git rev-parse
--show-toplevel)
8 .
"$GIT_TOPLEVEL_DIR"/auto
/scripts
/utils.sh
10 OVERLAY
=$
(branch_name_to_suite $
(git_current_branch
))
11 OVERLAY_FILE
="${GIT_TOPLEVEL_DIR}/config/APT_overlays.d/${OVERLAY}"
12 TICKET
=$
(git_current_branch | perl
-p -E 's/.*?(\d{4,6}).*/$1/')
14 touch "${OVERLAY_FILE}"
15 git add
"${OVERLAY_FILE}"
16 git commit
-m "Enable the ${OVERLAY} APT overlay (refs: #${TICKET})."