1 ;; erlang-sinan.el --- Functions for launching sinan commands.
3 ;; Author: Dave Peticolas
5 ;; Keywords: erlang, sinan, erlware
13 (defun erlang-sinan-run-command (&optional args
)
14 "Run sinan with the command given as an argument. Runs sinan
15 in a separate process asynchronously with output going to the
19 (let ((cmd (string-join " " (cons "sinan" args
))))
20 (compile-internal cmd
"No more errors." "sinan")))
22 (defun erlang-sinan-build ()
24 (erlang-sinan-run-command))
26 (defun erlang-sinan-clean ()
28 (erlang-sinan-run-command '("clean")))
30 (defun string-join (joiner strings
)
31 (string-join-accum joiner strings
""))
33 (defun string-join-accum (joiner strings accum
)
34 (cond ((not strings
) accum
)
35 ((not (cdr strings
)) (concat accum
(car strings
)))
36 (t (string-join-accum joiner
(cdr strings
)
37 (concat accum
(car strings
) joiner
)))))