Skip to content

Commit 3532702

Browse files
dmcardlencw
authored andcommitted
Makefile: Prevent doc recipe from creating dir named '$HOME'
Prior to this commit, running `make doc` had the unwanted side effect of creating a directory literally named `$HOME` in the source tree. Fixed rclone#8092
1 parent f8d782c commit 3532702

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ MANUAL.txt: MANUAL.md
144144
pandoc -s --from markdown-smart --to plain MANUAL.md -o MANUAL.txt
145145

146146
commanddocs: rclone
147-
XDG_CACHE_HOME="" XDG_CONFIG_HOME="" HOME="\$$HOME" USER="\$$USER" rclone gendocs docs/content/
147+
XDG_CACHE_HOME="" XDG_CONFIG_HOME="" HOME="\$$HOME" USER="\$$USER" rclone gendocs --config=/notfound docs/content/
148148

149149
backenddocs: rclone bin/make_backend_docs.py
150150
XDG_CACHE_HOME="" XDG_CONFIG_HOME="" HOME="\$$HOME" USER="\$$USER" ./bin/make_backend_docs.py

bin/make_backend_docs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ def find_backends():
2121
def output_docs(backend, out, cwd):
2222
"""Output documentation for backend options to out"""
2323
out.flush()
24-
subprocess.check_call(["./rclone", "help", "backend", backend], stdout=out)
24+
subprocess.check_call(["./rclone", "--config=/notfound", "help", "backend", backend], stdout=out)
2525

2626
def output_backend_tool_docs(backend, out, cwd):
2727
"""Output documentation for backend tool to out"""
2828
out.flush()
29-
subprocess.call(["./rclone", "backend", "help", backend], stdout=out, stderr=subprocess.DEVNULL)
29+
subprocess.call(["./rclone", "--config=/notfound", "backend", "help", backend], stdout=out, stderr=subprocess.DEVNULL)
3030

3131
def alter_doc(backend):
3232
"""Alter the documentation for backend"""

0 commit comments

Comments
 (0)