Commit ac90d643 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl

Limit file name length to 250 characters

Otherwise we stumble upon file system limits when 'manual_cpp' has to be
used. This whole situation with the 'manual_cpp' is very unsatisfying...
parent 38335f50
......@@ -38,15 +38,17 @@ elif len(files) == 0:
elif len(files) == 1:
file, = files
tmp_filename = "manually_preprocessed_" + file.replace("/", "__")
tmp_filename = "manually_preprocessed_" + file.replace("/", "_")
try:
output = args.index("-o")
outputname = args[output + 1]
tmp_filename += "-" + outputname.replace("/", "__") + ".F90"
tmp_filename += "-" + outputname.replace("/", "_") + ".F90"
except ValueError:
pass
tmp_filename = tmp_filename[-250:]
# preprocess
check_call_redirect(["cpp","-P", "-traditional", "-Wall", "-Werror"] + cpp_args + [file], filename=tmp_filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment