Ensure sandbox link to local .emacs.d directory is created properly

If `sandbox/.emacs.d` already exists, calling `ln` again seems to create links
within this directory.  Ensure that this does not happen anymore by deleting the
link first if it already exists.  Also add `-T` to `ln` to ensure its arguments
are interpreted properly.

They day I understand argument interpretation in `ln` will be a good day …
This commit is contained in:
Daniel - 2020-11-21 12:12:38 +01:00
parent 0cf2ba7d1e
commit 9e84ba5251
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ distclean: clean
sandbox-start: sandbox-start:
mkdir -p sandbox mkdir -p sandbox
ln -s $(PWD) sandbox/.emacs.d rm -f sandbox/.emacs.d
ln -sT $(PWD) sandbox/.emacs.d
HOME=$(PWD)/sandbox emacs HOME=$(PWD)/sandbox emacs
timelinetools-test.elc: timeline-tools.elc timelinetools-test.elc: timeline-tools.elc