Introduction
Introduction Statistics Contact Development Disclaimer Help
remove makefile in favour of shell script - dotfiles - These are my dotfiles. T…
Log
Files
Refs
README
---
commit 715b6fb337643fb127de51dbdf692cf22a9cd149
parent 366dbf02ecbf946d03f25f50bf2701dc8400c4ef
Author: Jay Scott <[email protected]>
Date: Thu, 31 Mar 2022 17:05:21 +0100
remove makefile in favour of shell script
The Makefile was basically a wrapper for shell scripting anyway. I am now
going to use a POSIX compliant shell script.
Diffstat:
D Makefile | 42 -----------------------------…
1 file changed, 0 insertions(+), 42 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -1,42 +0,0 @@
-.POSIX:
-
-FILES = bashrc profile vimrc
-ROOT = bin
-CONFIG = git isync mpd mutt ncmpcpp newsboat qutebrowser X11
-
-AUR = paru
-
-all: link restore
-
-restore:
- crontab $(PWD)/crontab
-
-aur:
- if [ -f /etc/arch-release ]; then
- git clone https://aur.archlinux.org/paru.git /tmp/paru
- cd /tmp/paru && makepkg -si --noconfirm --needed
- ${AUR} -S --needed - < $(PWD)/pkg/archlinux
- fi
-
-backup:
- crontab -l > $(PWD)/crontab
- ${AUR} -Qqe > $(PWD)/pkg/archlinux
-
-cleanup:
- ${AUR} -Rs $(${AUR} -Qqtd)
-
-link:
- for f in ${FILES}; do ln -fs $(PWD)/$$f ${HOME}/.$$f; done
- for f in ${ROOT}; do ln -fTs $(PWD)/$$f ${HOME}/$$f; done
- for f in ${CONFIG}; do ln -fTs $(PWD)/$$f ${HOME}/.config/$$f; done
-
-unlink:
- for f in ${FILES}; do unlink ${HOME}/.$$f; done
- for f in ${ROOT}; do unlink ${HOME}/$$f; done
- for f in ${CONFIG}; do unlink ${HOME}/.config/$$f; done
-
-test:
- shellcheck -s sh $(PWD)/bin/*.sh
- shfmt -p -w $(PWD)/bin/*.sh
-
-.PHONY: all restore aur backup cleanup link unlink test
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.