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:
parent
b9a98e5a01
commit
98844c28f4
6 changed files with 2 additions and 16 deletions
3
documentation/.gitignore
vendored
3
documentation/.gitignore
vendored
|
@ -13,7 +13,4 @@ toc-3.adoc
|
|||
toc-4.adoc
|
||||
toc-5.adoc
|
||||
|
||||
# Shared folder
|
||||
/shared
|
||||
|
||||
*.swp
|
||||
|
|
|
@ -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
1
documentation/shared
Symbolic link
|
@ -0,0 +1 @@
|
|||
../shared
|
3
website/.gitignore
vendored
3
website/.gitignore
vendored
|
@ -2,9 +2,6 @@
|
|||
/public
|
||||
resources
|
||||
|
||||
# Shared folder
|
||||
/shared
|
||||
|
||||
# Autogenerated content
|
||||
/data/releases.toml
|
||||
|
||||
|
|
|
@ -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
1
website/shared
Symbolic link
|
@ -0,0 +1 @@
|
|||
../shared
|
Loading…
Reference in a new issue