;;; See devops.texi for complete details.
+(define (devops:main)
+ (let* ((cmdl (command-line))
+ (arg1 (and (pair? cmdl) (car cmdl))))
+ (cond ((equal? arg1 "status") (devops:status))
+ ((equal? arg1 "release") (apply devops:release (cdr cmdl)))
+ ((equal? arg1 "build") (apply devops:build (cdr cmdl)))
+ (else (error "Unknown developer operation:" cmdl)))))
+
(define (devops:status)
(let ((dirt (shell-lines "git status --porcelain --untracked-files=no")))
(if (file-exists? "src/runtime/version.scm")
(lint (core-lint version (or (core-changes) '()) dirt)))
(if (not (null? lint))
(begin
- (log "\n# "(project-name)" "(version-string version)"\n")
+ (log "\n# core "(version-string version)"\n")
(write-lint lint)))))
(define (plugin-status plugin dirt)
(define (host-ubuntu-codename host)
(ubuntu-os-codename (host-os host)))
+(define (host-ubuntu-version host)
+ (ubuntu-os-version (host-os host)))
+
(define (os-ubuntu? os)
(string-prefix? "Ubuntu " os))
(define (ubuntu-os-codename os)
- (cond ((string=? "Ubuntu 17.04" os) "zesty")
+ (cond ((string=? "Ubuntu 17.10" os) "artful")
+ ((string=? "Ubuntu 17.04" os) "zesty")
((string=? "Ubuntu 16.10" os) "yakkety")
((string=? "Ubuntu 16.04" os) "xenial")
(else (error "Unexpected Ubuntu OS:" os))))
(define (ubuntu-os-version os)
- (cond ((string=? "Ubuntu 17.04" os) "17.04")
+ (cond ((string=? "Ubuntu 17.10" os) "17.10")
+ ((string=? "Ubuntu 17.04" os) "17.04")
((string=? "Ubuntu 16.10" os) "16.10")
((string=? "Ubuntu 16.04" os) "16.04")
(else (error "Unexpected Ubuntu OS:" os))))