diff options
author | Tom Levy <tomlevy93@gmail.com> | 2019-03-21 04:37:56 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-03-25 18:58:22 +0300 |
commit | 4318f9bb736c9874204b5c94c825f0c57bed78d7 (patch) | |
tree | e1b42eeb5d598f41c17309c5a5e20907258298c4 /Documentation/translations/zh_CN/process | |
parent | cc809ed885097eafff7b711ef03c20261651ec3a (diff) | |
download | linux-4318f9bb736c9874204b5c94c825f0c57bed78d7.tar.xz |
docs: remove spaces from shell variable assignment
The instructions for generating patches are given as shell commands
with variables as placeholders. They use the syntax "SRCTREE= linux",
which is wrong for the Bourne shell family (it runs the command
"linux" with the variable "SRCTREE" set to the empty string).
Remove the spaces to avoid confusion. This breaks the pretty alignment
but helps new contributors who try to run the commands as written.
Signed-off-by: Tom Levy <tomlevy93@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/translations/zh_CN/process')
-rw-r--r-- | Documentation/translations/zh_CN/process/submitting-patches.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/translations/zh_CN/process/submitting-patches.rst b/Documentation/translations/zh_CN/process/submitting-patches.rst index 66c64acf86c1..1bd64832b424 100644 --- a/Documentation/translations/zh_CN/process/submitting-patches.rst +++ b/Documentation/translations/zh_CN/process/submitting-patches.rst @@ -41,8 +41,8 @@ Documentation/process/submitting-drivers.rst 。 何子目录。 为一个单独的文件创建补丁,一般来说这样做就够了:: - SRCTREE= linux-2.6 - MYFILE= drivers/net/mydriver.c + SRCTREE=linux-2.6 + MYFILE=drivers/net/mydriver.c cd $SRCTREE cp $MYFILE $MYFILE.orig @@ -53,7 +53,7 @@ Documentation/process/submitting-drivers.rst 。 为多个文件创建补丁,你可以解开一个没有修改过的内核源代码树,然后和你自 己的代码树之间做 diff 。例如:: - MYSRC= /devel/linux-2.6 + MYSRC=/devel/linux-2.6 tar xvfz linux-2.6.12.tar.gz mv linux-2.6.12 linux-2.6.12-vanilla |