Skip to content
Browse files

Update project to use set-sub-version alias for sub projects

  • Loading branch information...
1 parent 1c5aca3 commit 24d08b0ead609698abfcd1df9dbb2333e3945132 @hugoduncan hugoduncan committed
Showing with 6 additions and 3 deletions.
  1. +1 −2 project.clj
  2. +5 −1 release.sh
View
3 project.clj
@@ -11,5 +11,4 @@
"deploy" ["sub" "deploy"]
"test" ["sub" "with-profile" "default,jdk1.7" "test"]
"doc" ["sub" "with-profile" "codox,jdk1.7" "doc"]
- "set-version" ["do" "set-version,"
- "sub" "with-profile" "release" "set-version"]})
+ "set-sub-version" ["sub" "with-profile" "release" "set-version"]})
View
6 release.sh
@@ -22,6 +22,9 @@ git flow release start $version || exit 1
lein set-version ${version} :previous-version ${previous_version} \
|| { echo "set version failed" >2 ; exit 1; }
+lein set-sub-version ${version} :previous-version ${previous_version} \
+ || { echo "set sub-version failed" >2 ; exit 1; }
+
echo ""
echo ""
echo "Changes since $previous_version"
@@ -68,7 +71,8 @@ echo -n "commiting project.clj, release notes and readme. enter to continue:" \
&& curl -X POST -F "name=${MARMALADE_USER}" -F "token=${MARMALADE_TOKEN}" -F 'package=@nrepl/elisp/nrepl-ritz.el' ${MARMALADE}/v1/packages \
&& echo "Setting project to ${next_version} for next cycle. enter to continue:" \
&& read x \
-&& lein set-version ${next_version} \
+&& lein set-version ${next_version} :previous-version ${version} \
+&& lein set-sub-version ${next_version} :previous-version ${version} \
&& git add -u \
&& git st \
&& git commit -m "Updated version for next release cycle" \

0 comments on commit 24d08b0

Please sign in to comment.
Something went wrong with that request. Please try again.