(else (error "Unknown developer operation:" cmdl)))))
(define (devops:status #!optional name)
+ (load "devops/config.scm")
(if (default-object? name)
(status)
(plugin-status (->plugin name) (dirt))))
(dir-len (string-length dir))
(dir-end (fix:+ 3 dir-len)))
(and (fix:> (string-length line) dir-end)
- (string=? dir (substring line 3 dir-end))
+ (string=? dir (string-slice line 3 dir-end))
(char=? #\/ (string-ref line dir-end)))))
(define core-version-pattern
(filter (let ((excludes (plugin-dir-prefixes)))
(lambda (line)
(let* ((i (string-find-next-char line #\tab))
- (name (substring line (fix:1+ i))))
+ (name (string-slice line (fix:1+ i))))
(not (any (lambda (exclude)
(string-prefix? exclude name))
excludes)))))
(define git-tag-create-options "")
(define (devops:release #!optional plugin)
+ (load "devops/config.scm")
(let ((dirt (shell-lines "git status --porcelain --untracked-files=no")))
(cond ((default-object? plugin)
(release-core (get-core-version) (get-core-changes) dirt #f))
(else
(error "version has not incremented:" version)))))
\f
-;;;; Build Status
+;;;; Build
(define (devops:build #!optional hostname)
+ (load "devops/config.scm")
(let ((srcs (available-sources "devops"))
(hosts (hosts)))
(if (null? hosts)