Skip to content

Commit

Permalink
Prepare for release: 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iamFIREcracker committed May 19, 2019
1 parent f4cc102 commit b3b633c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ above won't work in that case).

# Changelog

Next
0.1.0 (2019-05-19)

- Add support for command line options:

Expand Down
2 changes: 1 addition & 1 deletion cg.asd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:author "Matteo Landi <[email protected]>"
:license "MIT"

:version "0.0.1"
:version "0.1.0"

:depends-on (#:cl-ppcre #:unix-opts)

Expand Down
7 changes: 5 additions & 2 deletions src/build.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
(setf cg:*version* (let* ((system (asdf:find-system :cg nil))
(base-version (asdf:component-version system))
(git-cmd (format NIL "git rev-list ~a..HEAD --count" base-version))
(pending (parse-integer (uiop:run-program git-cmd :output :string))))
(if (zerop pending)
(output (uiop:run-program git-cmd
:output :string
:ignore-error-status T))
(pending (parse-integer output :junk-allowed T)))
(if (or (not pending) (zerop pending))
(format NIL "~a" base-version)
(format NIL "~a-r~a" base-version pending))))

Expand Down

0 comments on commit b3b633c

Please sign in to comment.