Skip to content

Commit

Permalink
Remove comma
Browse files Browse the repository at this point in the history
  • Loading branch information
eerohele committed Oct 7, 2023
1 parent 70240ba commit 737d485
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Either:
me.flowthing/pp {:mvn/version "2023-10-05.5"}

;; Git coordinates
io.github.eerohele/pp {:git/tag "2023-10-05.5", :git/sha "7059eec"}
io.github.eerohele/pp {:git/tag "2023-10-05.5" :git/sha "7059eec"}
```

Then:
Expand Down
7 changes: 3 additions & 4 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
,,,)

(defn bump-coords
[{:git/keys [tag] :as coords}]
[{:git/keys [tag sha]}]
(build/process {:command-args ["mvn" "versions:set" (format "-DnewVersion=%s" tag)]})
(spit "README.md"
(->
(slurp "README.md")
(string/replace #"(?im)(\{:mvn/version \".+?\"\})" (format "{:mvn/version \"%s\"}" tag))
(string/replace #"(?im)(\{:git/tag \".+?\", :git/sha \".+?\"\})"
(binding [*print-namespace-maps* false]
(pr-str coords))))))
(string/replace #"(?im)(\{:git/tag \".+?\" :git/sha \".+?\"\})"
(format "{:git/tag \"%s\" :git/sha \"%s\"}" tag sha)))))

(defn release
[_]
Expand Down

0 comments on commit 737d485

Please sign in to comment.