-
Notifications
You must be signed in to change notification settings - Fork 1
/
Bakefile.sh
27 lines (22 loc) · 846 Bytes
/
Bakefile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# shellcheck shell=bash
# config: big-print=off
task.init() {
git config --local filter.npmrc-clean.clean './os-unix/config-lang/.config/npm/npmrc-clean.sh'
git config --local filter.slack-term-config-clean.clean './os-unix/config-application/.config/slack-term/slack-term-config-clean.sh'
git config --local filter.oscrc-clean.clean './os-unix/config-tools/.config/osc/oscrc-clean.sh'
}
task.build() {
cd "./os-unix/config-shell/.config/X11/resources" || exit
printf '%s\n' "! GENERATERD BY 'bake build'" > uxterm.Xresources
sed 's/XTerm/UXTerm/g' xterm.Xresources >> uxterm.Xresources
}
task.lint() {
yamllint -c ./.yamllint.yaml .
}
task.test() {
(cd "./os-unix/config-shell/.config/shell/modules/common" && bats -p .)
~/scripts/lint/lint-scripts.sh
}
task.commit() {
git commit -m "update: $(date '+%B %d, %Y (%H:%M)')" "$@"
}