-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
18 lines (15 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: transfer-repo-to-local transfer-local-to-repo release
#───────────────────────────────────────────────────────────────────────────────
transfer-local-to-repo:
workflow_id=$$(basename "$$PWD") && \
prefs_location=$$(grep "5" "$$HOME/Library/Application Support/Alfred/prefs.json" | cut -d'"' -f4 | sed -e 's|\\/|/|g' -e "s|^~|$$HOME|") && \
local_workflow="$$prefs_location/Alfred.alfredpreferences/workflows/$$workflow_id" && \
rsync --archive --delete --exclude-from="$$PWD/.rsync-exclude" "$$local_workflow/" "$$PWD" ; \
git status --short
transfer-repo-to-local:
workflow_id=$$(basename "$$PWD") && \
prefs_location=$$(grep "5" "$$HOME/Library/Application Support/Alfred/prefs.json" | cut -d'"' -f4 | sed -e 's|\\/|/|g' -e "s|^~|$$HOME|") && \
local_workflow="$$prefs_location/Alfred.alfredpreferences/workflows/$$workflow_id" && \
rsync --archive --delete --exclude-from="$$PWD/.rsync-exclude" "$$PWD/" "$$local_workflow" ; \
release:
zsh ./.build-and-release.sh