From e2524cfcef8114fa5b0f8a7291d40c5ecfa75a9b Mon Sep 17 00:00:00 2001 From: f Date: Thu, 27 May 2021 18:01:56 -0300 Subject: [PATCH] =?UTF-8?q?copiar=20la=20configuraci=C3=B3n=20inicial=20y?= =?UTF-8?q?=20avisar=20cuando=20hay=20que=20actualizarla?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 22cd255..c3a9a61 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,14 @@ hain ?= ../hain JEKYLL_ENV := $(env) -.env: - @touch .env +# Copiar el archivo de configuraciĆ³n y avisar cuando hay que +# actualizarlo. +.env: .env.example + @test -f $@ || cp -v $< $@ + @test -f $@ && echo "Revisa $@ para actualizarlo con respecto a $<" + @test -f $@ && diff -auN --color $@ $< + +# Incluir la configuracion include .env export