]> git.baikalelectronics.ru Git - kernel.git/commit
tmplcvt: make the tool more robust
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 5 Apr 2017 13:22:55 +0000 (10:22 -0300)
committerJonathan Corbet <corbet@lwn.net>
Tue, 11 Apr 2017 20:35:15 +0000 (14:35 -0600)
commitf6737ae8755ca0e710caf905ffcc3fb8b1857748
tree4358093e32b08d6ec3acbe5c4ed9cfc72b766e58
parentc7868674a9481eeb9c26d5fcec82d0761048558f
tmplcvt: make the tool more robust

Currently, the script just assumes to be called at
Documentation/sphinx/. Change it to work on any directory,
and make it abort if something gets wrong.

Also, be sure that both parameters are specified.

That should avoid troubles like this:

$ Documentation/sphinx/tmplcvt Documentation/DocBook/writing_usb_driver.tmpl
sed: couldn't open file convert_template.sed: No such file or directory

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/sphinx/tmplcvt