diff options
author | Sunil Mohan Adapa <sunil@medhas.org> | 2015-02-11 22:13:11 +0530 |
---|---|---|
committer | Sunil Mohan Adapa <sunil@medhas.org> | 2015-02-11 22:13:11 +0530 |
commit | dbddeb2979cebafa546035227f7d33c7fbda0eb0 (patch) | |
tree | 67d71f513bafe5359709190136b201185776ba49 | |
parent | b31282097737ce2f5b3e2ce0011257cd43bd58ca (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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |