Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Mohan Adapa <sunil@medhas.org>2015-02-11 22:13:11 +0530
committerSunil Mohan Adapa <sunil@medhas.org>2015-02-11 22:13:11 +0530
commitdbddeb2979cebafa546035227f7d33c7fbda0eb0 (patch)
tree67d71f513bafe5359709190136b201185776ba49
parentb31282097737ce2f5b3e2ce0011257cd43bd58ca (diff)
Fix build failure during date change boundary
When the build it started on a particular date and the date changes during the build, the final step of compressing the files fails. This is because the value of TODAY is not evaluated until the command is actually executed. This patch fixes that by make sure that the value of variable TODAY is evaluated before the build process starts.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f1f3178..624ff43 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ DESTINATION = card
# yes no
ENABLE_NONFREE = no
BUILD = $(MACHINE)-$(ARCHITECTURE)-$(DESTINATION)
-TODAY := `date +%Y-%m-%d`
+TODAY := $(shell date +%Y-%m-%d)
NAME = build/freedombox-unstable_$(TODAY)_$(BUILD)
WEEKLY_DIR = torrent/freedombox-unstable_$(TODAY)
IMAGE = $(NAME).img