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

@ -13,7 +13,4 @@ toc-3.adoc
toc-4.adoc
toc-5.adoc
# Shared folder
/shared
*.swp

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

1
documentation/shared Symbolic link
View file

@ -0,0 +1 @@
../shared

3
website/.gitignore vendored
View file

@ -2,9 +2,6 @@
/public
resources
# Shared folder
/shared
# Autogenerated content
/data/releases.toml

View file

@ -7,7 +7,6 @@
#
# all (default) - generate the releases.toml and compile all the website
# generate - generate the releases.toml and build all the website
# copy-shared - move the shared AsciiDoc entities to the folder project
MAINTAINER=carlavilla@FreeBSD.org
@ -16,7 +15,6 @@ HUGO_CMD = /usr/local/bin/hugo
all: starting-message generate-releases run
generate: starting-message generate-releases build
copy-shared: move-shared
starting-message:
@echo ---------------------------------------------------------------
@ -31,6 +29,3 @@ run:
build:
${HUGO_CMD}
move-shared:
cp -R ../shared ./shared

1
website/shared Symbolic link
View file

@ -0,0 +1 @@
../shared