(2013/08/08 0:15), Daniel Shahaf wrote:
masaru tsuchiyama wrote on Thu, Aug 01, 2013 at 00:11:30 +0900:
* gen-make.py
() : use default value as conf when args[0] is line ending.
I don't use windows, but I think the right fix in this case is to
prevent ("\n" in sys.argv) from becoming true in the first place.
Fixed my patch.
[[[
add error check for eol.
* gen-make.py
() : print error message and exit if args[0] is eol
]]]
--
Masaru Tsuchiyama <m.tma...@gmail.com>
Index: gen-make.py
===================================================================
--- gen-make.py (revision 1514179)
+++ gen-make.py (working copy)
@@ -278,6 +278,9 @@ if __name__ == '__main__':
except getopt.GetoptError, e:
_usage_exit(str(e))
+ if args and args[0] == '\n':
+ _usage_exit("argument must not be end-of-line.")
+
conf = 'build.conf'
skip = 0
gentype = 'make'