git: 98844c28f4 - main - build: replace move-shared/copy-shared with a symlink
Kyle Evans
kevans at FreeBSD.org
Fri Jan 29 03:15:28 UTC 2021
The branch main has been updated by kevans (ports, src committer):
URL: https://cgit.FreeBSD.org/doc/commit/?id=98844c28f4f56a39dce244cad5a72b5b9deb7e02
commit 98844c28f4f56a39dce244cad5a72b5b9deb7e02
Author: Kyle Evans <kevans at FreeBSD.org>
AuthorDate: 2021-01-28 04:06:37 +0000
Commit: Kyle Evans <kevans at FreeBSD.org>
CommitDate: 2021-01-29 03:15:10 +0000
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
---
documentation/.gitignore | 3 ---
documentation/Makefile | 5 -----
documentation/shared | 1 +
website/.gitignore | 3 ---
website/Makefile | 5 -----
website/shared | 1 +
6 files changed, 2 insertions(+), 16 deletions(-)
diff --git a/documentation/.gitignore b/documentation/.gitignore
index d703e3c524..467867ca9e 100644
--- a/documentation/.gitignore
+++ b/documentation/.gitignore
@@ -13,7 +13,4 @@ toc-3.adoc
toc-4.adoc
toc-5.adoc
-# Shared folder
-/shared
-
*.swp
diff --git a/documentation/Makefile b/documentation/Makefile
index f6192a459b..cdbed92057 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -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 at 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
diff --git a/documentation/shared b/documentation/shared
new file mode 120000
index 0000000000..8fba6b66ae
--- /dev/null
+++ b/documentation/shared
@@ -0,0 +1 @@
+../shared
\ No newline at end of file
diff --git a/website/.gitignore b/website/.gitignore
index 22591f65b4..0bba3cc84e 100644
--- a/website/.gitignore
+++ b/website/.gitignore
@@ -2,9 +2,6 @@
/public
resources
-# Shared folder
-/shared
-
# Autogenerated content
/data/releases.toml
diff --git a/website/Makefile b/website/Makefile
index 71445c4f05..96d0070c5a 100644
--- a/website/Makefile
+++ b/website/Makefile
@@ -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 at 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
diff --git a/website/shared b/website/shared
new file mode 120000
index 0000000000..8fba6b66ae
--- /dev/null
+++ b/website/shared
@@ -0,0 +1 @@
+../shared
\ No newline at end of file
More information about the dev-commits-doc-all
mailing list