Skip to content
Snippets Groups Projects
Commit fc194a07 authored by nimrod's avatar nimrod
Browse files

Replace the presentation alias.

Now tools like gm and qpdf would be available too.
parent 0145b1c1
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,6 @@ alias occ='docker --host=ssh://host01.shore.co.il exec -itu www-data nextcloud-n ...@@ -155,7 +155,6 @@ alias occ='docker --host=ssh://host01.shore.co.il exec -itu www-data nextcloud-n
alias pip2='python2 -m pip' alias pip2='python2 -m pip'
alias pip3='python3 -m pip' alias pip3='python3 -m pip'
alias pre-commit-update-skel='pre-commit autoupdate --config ~/.config/git/skel/.pre-commit-config.yaml' alias pre-commit-update-skel='pre-commit autoupdate --config ~/.config/git/skel/.pre-commit-config.yaml'
alias presentation='docker dev registry.shore.co.il/presentation'
# shellcheck disable=SC2139 # shellcheck disable=SC2139
alias rc_make="make --directory $HOME --always-make" alias rc_make="make --directory $HOME --always-make"
alias rc_update="rc_make vendored generated" alias rc_update="rc_make vendored generated"
......
...@@ -5,7 +5,12 @@ download = $(curl) --output $@ ...@@ -5,7 +5,12 @@ download = $(curl) --output $@
mkd = mkdir -p $$(dirname $@) mkd = mkdir -p $$(dirname $@)
.PHONY: all .PHONY: all
all: secure-templates
all: ssh-keys all: ssh-keys
all: vendored
.PHONY: secure-templates
.PHONY: vendored
.PHONY: ssh-keys .PHONY: ssh-keys
ssh-keys: .ssh/gitlab_ed25519 ssh-keys: .ssh/gitlab_ed25519
...@@ -42,11 +47,29 @@ ssh-keys: .ssh/schoolinks_vpn_rsa ...@@ -42,11 +47,29 @@ ssh-keys: .ssh/schoolinks_vpn_rsa
ph show --field Notes "SSH/$$(basename '$@')" > '$@' ph show --field Notes "SSH/$$(basename '$@')" > '$@'
chmod 600 '$@' chmod 600 '$@'
all: .config/pythonrc.py vendored: .config/pythonrc.py
.config/pythonrc.py: Makefile .config/pythonrc.py: Makefile
$(mkd) $(mkd)
$(download) https://raw.githubusercontent.com/lonetwin/pythonrc/master/pythonrc_pre38.py $(download) https://raw.githubusercontent.com/lonetwin/pythonrc/master/pythonrc_pre38.py
vendored: .local/bin/presentation
.local/bin/presentation: Makefile
$(mkd)
$(download) https://git.shore.co.il/nimrod/presentation/-/raw/master/presentation
chmod +x '$@'
all: .local/bin/gm
.local/bin/gm: .local/bin/presentation
ln -s presentation '$@'
all: .local/bin/pandoc
.local/bin/pandoc: .local/bin/presentation
ln -s presentation '$@'
all: .local/bin/qpdf
.local/bin/qpdf: .local/bin/presentation
ln -s presentation '$@'
all: .ssh/config all: .ssh/config
.ssh/config: $(ssh_configs) .ssh/config: $(ssh_configs)
$(mkd) $(mkd)
...@@ -68,8 +91,6 @@ all: .ssh/authorized_keys ...@@ -68,8 +91,6 @@ all: .ssh/authorized_keys
$(mkd) $(mkd)
-$(ansible-local) -m authorized_key -a "user=$$(whoami) key='$$(cat .ssh/localhost.pub)' key_options='from=\"127.0.0.1/8\"'" -$(ansible-local) -m authorized_key -a "user=$$(whoami) key='$$(cat .ssh/localhost.pub)' key_options='from=\"127.0.0.1/8\"'"
.PHONY: secure-templates
all: secure-templates
templates != git ls-files -- '*.j2' | sed 's/\.j2$$//' templates != git ls-files -- '*.j2' | sed 's/\.j2$$//'
secure-templates: ${templates} secure-templates: ${templates}
%: %.j2 Documents/Database.kdbx %: %.j2 Documents/Database.kdbx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment