From 2ae8fd27a8ffeaedac4c2cd6f75433aaa33b0be7 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Mon, 30 Oct 2017 21:39:35 +0200 Subject: [PATCH] Replace the version in place --- modules/reitit-core/project.clj | 4 +--- modules/reitit-ring/project.clj | 4 +--- modules/reitit-spec/project.clj | 4 +--- modules/reitit/project.clj | 4 +--- project.clj | 12 +++++------- scripts/set-version | 5 +++-- 6 files changed, 12 insertions(+), 21 deletions(-) diff --git a/modules/reitit-core/project.clj b/modules/reitit-core/project.clj index f7a4454a..b2017f3e 100644 --- a/modules/reitit-core/project.clj +++ b/modules/reitit-core/project.clj @@ -1,6 +1,4 @@ -(def VERSION "0.1.0-SNAPSHOT") - -(defproject metosin/reitit-core VERSION +(defproject metosin/reitit-core "0.1.0-SNAPSHOT" :description "Snappy data-driven router for Clojure(Script)" :url "https://github.com/metosin/reitit" :license {:name "Eclipse Public License" diff --git a/modules/reitit-ring/project.clj b/modules/reitit-ring/project.clj index 1c061c81..289073f0 100644 --- a/modules/reitit-ring/project.clj +++ b/modules/reitit-ring/project.clj @@ -1,6 +1,4 @@ -(def VERSION "0.1.0-SNAPSHOT") - -(defproject metosin/reitit-ring VERSION +(defproject metosin/reitit-ring "0.1.0-SNAPSHOT" :description "Reitit: Ring routing" :url "https://github.com/metosin/reitit" :license {:name "Eclipse Public License" diff --git a/modules/reitit-spec/project.clj b/modules/reitit-spec/project.clj index 91745cb5..c000fa46 100644 --- a/modules/reitit-spec/project.clj +++ b/modules/reitit-spec/project.clj @@ -1,6 +1,4 @@ -(def VERSION "0.1.0-SNAPSHOT") - -(defproject metosin/reitit-spec VERSION +(defproject metosin/reitit-spec "0.1.0-SNAPSHOT" :description "Reitit: clojure.spec coercion" :url "https://github.com/metosin/reitit" :license {:name "Eclipse Public License" diff --git a/modules/reitit/project.clj b/modules/reitit/project.clj index b26a813d..b0f4404b 100644 --- a/modules/reitit/project.clj +++ b/modules/reitit/project.clj @@ -1,6 +1,4 @@ -(def VERSION "0.1.0-SNAPSHOT") - -(defproject metosin/reitit VERSION +(defproject metosin/reitit "0.1.0-SNAPSHOT" :description "Snappy data-driven router for Clojure(Script)" :url "https://github.com/metosin/reitit" :license {:name "Eclipse Public License" diff --git a/project.clj b/project.clj index 2b7f3fee..e0c03553 100644 --- a/project.clj +++ b/project.clj @@ -1,6 +1,4 @@ -(def VERSION "0.1.0-SNAPSHOT") - -(defproject metosin/reitit-parent VERSION +(defproject metosin/reitit-parent "0.1.0-SNAPSHOT" :description "Snappy data-driven router for Clojure(Script)" :url "https://github.com/metosin/reitit" :license {:name "Eclipse Public License" @@ -11,10 +9,10 @@ :source-uri "https://github.com/metosin/reitit/{version}/{filepath}#L{line}" :metadata {:doc/format :markdown}} - :managed-dependencies [[metosin/reitit ~VERSION] - [metosin/reitit-core ~VERSION] - [metosin/reitit-ring ~VERSION] - [metosin/reitit-spec ~VERSION] + :managed-dependencies [[metosin/reitit "0.1.0-SNAPSHOT"] + [metosin/reitit-core "0.1.0-SNAPSHOT"] + [metosin/reitit-ring "0.1.0-SNAPSHOT"] + [metosin/reitit-spec "0.1.0-SNAPSHOT"] [meta-merge "1.0.0"] [metosin/spec-tools "0.5.0"]] diff --git a/scripts/set-version b/scripts/set-version index ddad9fa9..1dd5714b 100755 --- a/scripts/set-version +++ b/scripts/set-version @@ -2,5 +2,6 @@ ext="sedbak$$" -find . -name project.clj -exec sed -i.$ext "s/(def VERSION \".*\")/(def VERSION \"$1\")/g" '{}' \; -find . -name "*.$ext" -exec rm '{}' \; \ No newline at end of file +find . -name project.clj -exec sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" '{}' \; +find . -name project.clj -exec sed -i.$ext "s/defproject metosin\/reitit\(.*\) \".*\"/defproject metosin\/reitit\1 \"$1\"/g" '{}' \; +find . -name "*.$ext" -exec rm '{}' \;