build: replace move-shared/copy-shared with a symlink

The build should strive to not write to the shared space, so symlink these
back to the one copy and remove the prep work needed.

Reviewed-by:	gjb, hrs
Differential-Revision:	https://reviews.freebsd.org/D28381
This commit is contained in:
Kyle Evans 2021-01-27 22:06:37 -06:00
parent b9a98e5a01
commit 98844c28f4
6 changed files with 2 additions and 16 deletions

View file

@ -7,7 +7,6 @@
#
# all (default) - generate the books TOC and compile all the documentation
# generate - generate the books TOC and build all the documentation
# copy-shared - move the shared AsciiDoc entities to the folder project
MAINTAINER=carlavilla@FreeBSD.org
@ -17,7 +16,6 @@ LANGUAGES = en,es,pt-br,de,ja,zh-cn,zh-tw,ru,el,hu,it,mn,nl,pl,fr
all: starting-message generate-books-toc run
generate: starting-message generate-books-toc build
copy-shared: move-shared
starting-message:
@echo ---------------------------------------------------------------
@ -36,6 +34,3 @@ run:
build:
${HUGO_CMD} --minify
move-shared:
cp -R ../shared ./shared