-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 631 Bytes
/
Makefile
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
28
29
30
31
#
#
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.ONESHELL:
CURRENT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
zip:
git archive --format zip HEAD > pbpaste.alfredworkflow
version:
@grep version info.plist -A1 | tail -1 | grep -oP '[\d\.]*'
mversion:
@git show origin/master:info.plist | grep version -A1 | tail -1 | grep -oP '[\d\.]*'
validate:
xmllint info.plist
awk '/items/,/<\/string/' info.plist | grep -v items | sed 's/.*string>\[/\[/g' | sed 's!</string>!!g' | jq .
fragment:
@echo $(CURRENT_BRANCH) | tr -s '-' ' ' | cut -d ' ' -f1
all:
@echo "Makefile needs your attention"
# vim:ft=make
#