summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.dir-locals.el31
-rwxr-xr-xacprep4
2 files changed, 33 insertions, 2 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 00000000..4f6af924
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,31 @@
+((nil . ((tab-width . 2)
+ (sentence-end-double-space . t)
+ (fill-column . 8)
+ (bug-reference-url-format
+ . "http://bugs.ledger-cli.org/show_bug.cgi?id=%s")))
+ (c-mode . ((c-file-style . "ledger")
+ (c-style-alist
+ ("ledger"
+ (indent-tabs-mode)
+ (c-basic-offset . 2)
+ (c-comment-only-line-offset 0 . 0)
+ (c-hanging-braces-alist
+ (substatement-open before after)
+ (arglist-cont-nonempty))
+ (c-offsets-alist
+ (statement-block-intro . +)
+ (knr-argdecl-intro . 5)
+ (substatement-open . 0)
+ (substatement-label . 0)
+ (label . 0)
+ (case-label . 0)
+ (statement-case-open . 0)
+ (statement-cont . +)
+ (arglist-intro . +)
+ (arglist-close . +)
+ (inline-open . 0)
+ (brace-list-open . 0)
+ (topmost-intro-cont first c-lineup-topmost-intro-cont
+ c-lineup-gnu-DEFUN-intro-cont))
+ (c-special-indent-hook . c-gnu-impose-minimum)
+ (c-block-comment-prefix . ""))))))
diff --git a/acprep b/acprep
index 5cfd6710..ff00e1e1 100755
--- a/acprep
+++ b/acprep
@@ -354,7 +354,7 @@ class PrepareBuild(CommandLineApp):
self.log.error("Execution failed: " + string.join(args, ' '))
sys.exit(1)
except OSError, e:
- self.log.error("Execution failed:", e)
+ self.log.error("Execution failed: " + e)
sys.exit(1)
def get_stdout(self, *args):
@@ -373,7 +373,7 @@ class PrepareBuild(CommandLineApp):
sys.exit(1)
return stdout[:-1]
except OSError, e:
- self.log.error("Execution failed:", e)
+ self.log.error("Execution failed:" + e)
sys.exit(1)
def isnewer(self, file1, file2):