X-Git-Url: https://git.ralfj.de/auto-debuild.git/blobdiff_plain/ddbc954e1694e551e82009d581a244e9994080fe..180623ecdb0fbe555d16e2ddbb0edc31185e1a1f:/auto_debuild.py diff --git a/auto_debuild.py b/auto_debuild.py index 5239e67..11845de 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -54,8 +54,7 @@ def loadConfigFile(file): # option line pos = line.index("=") # will raise exception when substring is not found curKey = line[:pos].strip() - value = line[pos+1:] - result[curKey] = shlex.split(value) + result[curKey] = shlex.split(line[pos+1:]) # shlex.split also strips except Exception: raise Exception("Invalid config, line %d: Error parsing line (quoting issue?)" % linenr) # add some convencience get functions @@ -145,11 +144,18 @@ def pythonRules(config): ] return r +def noneRules(config): + r = RulesFile() + r.dh += ["--buildsystem=makefile"] # makefile does the last possible harm + r.rules['auto_build'] = [] + return r + # build systems buildSystems = { 'cmake': BuildSystem(cmakeRules, ["cmake"]), 'automake': BuildSystem(automakeRules), 'python': BuildSystem(pythonRules, ["python-setuptools"], ["${python:Depends}"]), + 'none': BuildSystem(noneRules), } # utility functions