From: Adam Sampson Date: Thu, 29 Dec 2016 21:03:27 +0000 (+0000) Subject: Pass the -f flag to ln. X-Git-Tag: fortune-mod-1.99.4~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc812261287a5694926b2e4f4476e312a24988f9;p=fortune-mod Pass the -f flag to ln. This prevents it from failing if the symlink already exists. --- diff --git a/fortune-mod/datfiles/Makefile b/fortune-mod/datfiles/Makefile index 71ba4a0..f53a082 100644 --- a/fortune-mod/datfiles/Makefile +++ b/fortune-mod/datfiles/Makefile @@ -41,7 +41,7 @@ cookies-stamp: for i in $(COOKIES) ; \ do \ $(STRFILE) $$i ; \ - ln -s $$i $$i.u8 || exit $? ; \ + ln -sf $$i $$i.u8 || exit $? ; \ done touch cookies-stamp diff --git a/fortune-mod/datfiles/off/Makefile b/fortune-mod/datfiles/off/Makefile index 3d5ecb5..97ee5af 100644 --- a/fortune-mod/datfiles/off/Makefile +++ b/fortune-mod/datfiles/off/Makefile @@ -22,7 +22,7 @@ ocookies-stamp: rotated-stamp rotated-stamp: for i in $(OCOOKIES_UNROTATED) ; \ - do $(ROT) < unrotated/$$i > rotated/$$i || exit $$? ; (cd rotated && ln -s $$i $$i.u8) ; done + do $(ROT) < unrotated/$$i > rotated/$$i || exit $$? ; (cd rotated && ln -sf $$i $$i.u8) ; done touch rotated-stamp check: all