diff options
| author | Benjamin Linskey | 2026-05-26 22:23:42 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-05-26 22:23:42 -0400 |
| commit | 6e531c85516de15c6dd4f3d38ab921fc3d5ac727 (patch) | |
| tree | 65391e0faf7b6000c0c8216289d190d6cae938ba | |
| parent | f670c9064ad1e912613c0705e449928c8141ce75 (diff) | |
| download | dotfiles-6e531c85516de15c6dd4f3d38ab921fc3d5ac727.tar.gz | |
Move makefile commands to a separate script
| -rw-r--r-- | Makefile | 8 | ||||
| -rwxr-xr-x | install.sh | 12 |
2 files changed, 13 insertions, 7 deletions
@@ -2,13 +2,7 @@ .PHONY: install install: - rm -f "$$HOME"/.bash_profile - find "$$PWD" -maxdepth 1 -name '.*' -not -name .git -not -name .DS_Store \ - -not -name .gitignore -exec ln -sf {} "$$HOME" \; - if [ "$$(uname)" = Linux ]; then ln -sf "$$HOME"/.profile "$$HOME"/.bash_profile; fi - if [ "$$(uname)" = Linux ]; then ln -sf "$$HOME"/.shrc "$$HOME"/.bashrc; fi - # Regenerate Vim help tags. - if type vim >/dev/null 2>&1; then vim -e -s -u NONE -c 'helptags ALL' -c q; fi + ./install.sh .PHONY: win win: diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..31b1d10 --- /dev/null +++ b/install.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +rm -f "$HOME"/.bash_profile + +find "$PWD" -maxdepth 1 -name '.*' -not -name .git -not -name .DS_Store \ + -not -name .gitignore -exec ln -sf {} "$HOME" \; + +if [ "$(uname)" = Linux ]; then ln -sf "$HOME"/.profile "$HOME"/.bash_profile; fi +if [ "$(uname)" = Linux ]; then ln -sf "$HOME"/.shrc "$HOME"/.bashrc; fi + +# Regenerate Vim help tags. +if type vim >/dev/null 2>&1; then vim -e -s -u NONE -c 'helptags ALL' -c q; fi |