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-4.adoc
|
||||||
toc-5.adoc
|
toc-5.adoc
|
||||||
|
|
||||||
# Shared folder
|
|
||||||
/shared
|
|
||||||
|
|
||||||
*.swp
|
*.swp
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#
|
#
|
||||||
# all (default) - generate the books TOC and compile all the documentation
|
# all (default) - generate the books TOC and compile all the documentation
|
||||||
# generate - generate the books TOC and build 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
|
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
|
all: starting-message generate-books-toc run
|
||||||
generate: starting-message generate-books-toc build
|
generate: starting-message generate-books-toc build
|
||||||
copy-shared: move-shared
|
|
||||||
|
|
||||||
starting-message:
|
starting-message:
|
||||||
@echo ---------------------------------------------------------------
|
@echo ---------------------------------------------------------------
|
||||||
|
@ -36,6 +34,3 @@ run:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
${HUGO_CMD} --minify
|
${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
|
/public
|
||||||
resources
|
resources
|
||||||
|
|
||||||
# Shared folder
|
|
||||||
/shared
|
|
||||||
|
|
||||||
# Autogenerated content
|
# Autogenerated content
|
||||||
/data/releases.toml
|
/data/releases.toml
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#
|
#
|
||||||
# all (default) - generate the releases.toml and compile all the website
|
# all (default) - generate the releases.toml and compile all the website
|
||||||
# generate - generate the releases.toml and build 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
|
MAINTAINER=carlavilla@FreeBSD.org
|
||||||
|
|
||||||
|
@ -16,7 +15,6 @@ HUGO_CMD = /usr/local/bin/hugo
|
||||||
|
|
||||||
all: starting-message generate-releases run
|
all: starting-message generate-releases run
|
||||||
generate: starting-message generate-releases build
|
generate: starting-message generate-releases build
|
||||||
copy-shared: move-shared
|
|
||||||
|
|
||||||
starting-message:
|
starting-message:
|
||||||
@echo ---------------------------------------------------------------
|
@echo ---------------------------------------------------------------
|
||||||
|
@ -31,6 +29,3 @@ run:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
${HUGO_CMD}
|
${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