make symlinks not hardlinks

hardlinks happened to work because it was a hard link to a symlink, but
it would have failed if eg git-annex-shell symlink did not exist,
perhaps because the Makefile was not run to build it. Or something like
that. Also, it seems like it worked by accident and the Makefile used to
ln -s.
This commit is contained in:
Joey Hess 2020-08-05 11:58:22 -04:00
parent ce93cc43c4
commit 8bfa7990b5
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -211,8 +211,8 @@ installGitAnnex topdir = go (topdir </> "bin")
error "cp failed"
unlessM (boolSystem "strip" [File (bindir </> "git-annex")]) $
error "strip failed"
createLink "git-annex" (bindir </> "git-annex-shell")
createLink "git-annex" (bindir </> "git-remote-tor-annex")
createSymbolicLink "git-annex" (bindir </> "git-annex-shell")
createSymbolicLink "git-annex" (bindir </> "git-remote-tor-annex")
main :: IO ()
main = getArgs >>= go