]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
docs: remove spaces from shell variable assignment
authorTom Levy <tomlevy93@gmail.com>
Thu, 21 Mar 2019 01:37:56 +0000 (14:37 +1300)
committerJonathan Corbet <corbet@lwn.net>
Mon, 25 Mar 2019 15:58:22 +0000 (09:58 -0600)
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>
Documentation/process/submitting-patches.rst
Documentation/translations/it_IT/process/submitting-patches.rst
Documentation/translations/ja_JP/SubmittingPatches
Documentation/translations/zh_CN/process/submitting-patches.rst

index be7d1829c3af99309a0999521c467dbaf95f01d8..33098adc5381e9017f4632868404ff742731cc89 100644 (file)
@@ -60,8 +60,8 @@ not in any lower subdirectory.
 
 To create a patch for a single file, it is often sufficient to do::
 
-       SRCTREE= linux
-       MYFILE=  drivers/net/mydriver.c
+       SRCTREE=linux
+       MYFILE=drivers/net/mydriver.c
 
        cd $SRCTREE
        cp $MYFILE $MYFILE.orig
@@ -73,7 +73,7 @@ To create a patch for multiple files, you should unpack a "vanilla",
 or unmodified kernel source tree, and generate a ``diff`` against your
 own source tree.  For example::
 
-       MYSRC= /devel/linux
+       MYSRC=/devel/linux
 
        tar xvfz linux-3.19.tar.gz
        mv linux-3.19 linux-3.19-vanilla
index 2ab9c1401aa191080ffd461fb83d3bf83b0d4394..713fba075b9d56889ad0cc1afbddef82198bcdce 100644 (file)
@@ -67,8 +67,8 @@ sulla radice dei sorgenti del kernel, e non sulle sue sottocartelle.
 
 Per creare una patch per un singolo file, spesso è sufficiente fare::
 
-       SRCTREE= linux
-       MYFILE=  drivers/net/mydriver.c
+       SRCTREE=linux
+       MYFILE=drivers/net/mydriver.c
 
        cd $SRCTREE
        cp $MYFILE $MYFILE.orig
@@ -80,7 +80,7 @@ Per creare una patch per molteplici file, dovreste spacchettare i sorgenti
 "vergini", o comunque non modificati, e fare un ``diff`` coi vostri.
 Per esempio::
 
-       MYSRC= /devel/linux
+       MYSRC=/devel/linux
 
        tar xvfz linux-3.19.tar.gz
        mv linux-3.19 linux-3.19-vanilla
index 02139656463eb7bc86ff9ee054a1d1896518440c..ad979c3c06a6cc1b26bc90d95143ee23113688e8 100644 (file)
@@ -58,8 +58,8 @@ Linux カーネルに対する全ての変更は diff(1) コマンドによる
 1個のファイルについてのパッチを作成するためには、ほとんどの場合、
 以下の作業を行えば十分です。
 
-       SRCTREE= linux-2.6
-       MYFILE=  drivers/net/mydriver.c
+       SRCTREE=linux-2.6
+       MYFILE=drivers/net/mydriver.c
 
        cd $SRCTREE
        cp $MYFILE $MYFILE.orig
@@ -71,7 +71,7 @@ Linux カーネルに対する全ての変更は diff(1) コマンドによる
 なわち変更を加えてない Linux カーネルを展開し、自分の Linux カーネル
 ソースとの差分を生成しないといけません。例えば、
 
-       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
index 66c64acf86c1afd1dc693585a0763707fc90cc0f..1bd64832b4240c4db7a824050074f427d0a14e1a 100644 (file)
@@ -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