From 20addbe8fd0ac4c79c8a69a4f888ec320a9ca4c3 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 2 Jan 2021 16:20:42 +0100 Subject: Refactor --- blog/dune | 4 ++-- blog/hash_host/hash_blog.ml | 1 + blog/hash_host/hash_localhost.ml | 1 + blog/hash_prod/hash_blog.ml | 1 - blog/hash_prod/hash_localhost.ml | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100755 blog/hash_host/hash_blog.ml create mode 100755 blog/hash_host/hash_localhost.ml delete mode 100755 blog/hash_prod/hash_blog.ml delete mode 100755 blog/hash_prod/hash_localhost.ml (limited to 'blog') diff --git a/blog/dune b/blog/dune index fef8506..c38558e 100755 --- a/blog/dune +++ b/blog/dune @@ -1,12 +1,12 @@ (rule (targets hash_host.ml) (enabled_if (= %{profile} dev)) - (action (run cp hash_prod/hash_localhost.ml hash_host.ml))) + (action (run cp hash_host/hash_localhost.ml hash_host.ml))) (rule (targets hash_host.ml) (enabled_if (<> %{profile} dev)) - (action (run cp hash_prod/hash_blog.ml hash_host.ml))) + (action (run cp hash_host/hash_blog.ml hash_host.ml))) (library (name blog) diff --git a/blog/hash_host/hash_blog.ml b/blog/hash_host/hash_blog.ml new file mode 100755 index 0000000..f5e172e --- /dev/null +++ b/blog/hash_host/hash_blog.ml @@ -0,0 +1 @@ +let expected_host = [%static_hash "blog.chimrod.com"] diff --git a/blog/hash_host/hash_localhost.ml b/blog/hash_host/hash_localhost.ml new file mode 100755 index 0000000..c652b6a --- /dev/null +++ b/blog/hash_host/hash_localhost.ml @@ -0,0 +1 @@ +let expected_host = [%static_hash ""] diff --git a/blog/hash_prod/hash_blog.ml b/blog/hash_prod/hash_blog.ml deleted file mode 100755 index f5e172e..0000000 --- a/blog/hash_prod/hash_blog.ml +++ /dev/null @@ -1 +0,0 @@ -let expected_host = [%static_hash "blog.chimrod.com"] diff --git a/blog/hash_prod/hash_localhost.ml b/blog/hash_prod/hash_localhost.ml deleted file mode 100755 index c652b6a..0000000 --- a/blog/hash_prod/hash_localhost.ml +++ /dev/null @@ -1 +0,0 @@ -let expected_host = [%static_hash ""] -- cgit v1.2.3