Determine snapshot date from commit date, simplify - susmb - mounting of SMB/CIFS shares via FUSE
(HTM) git clone git://git.codemadness.org/susmb
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 89acef1b59a04163e458ab1f303127de9821f1c2
(DIR) parent c7bf8569cbff209901537a040617fe26bdcac453
(HTM) Author: Michal Suchanek <hramrach@centrum.cz>
Date: Mon, 22 Mar 2010 23:14:31 +0100
Determine snapshot date from commit date, simplify
Diffstat:
M Makefile.in | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/Makefile.in b/Makefile.in
@@ -88,9 +88,8 @@ ifeq ($(SNAPSHOT),)
VERSION = $(shell grep 'USMB_VERSION[^_]' version.h | sed 's/.*0x//')
ARCHIVE = $(VERSION)
else
- ARCHIVE = $(shell git log -n1 | head -n1 | cut -d' ' -f2 | cut -c1-8)
- commitdate = $(
- VERSION = $(shell date -ud "$(shell git log -n 1 | grep ^Date | sed -e 's,^Date:[ ]\+,,' -e 's,\([^ ]\+\)[ ]\+\([^ ]\+\)$$,\2 \1,' )" "+%Y%m%d%H%M%S")~$(ARCHIVE)
+ ARCHIVE = $(shell git show $(SNAPSHOT) '--pretty=format:%h' | head -n1 )
+ VERSION = $(shell date -ud "$(shell git show $(SNAPSHOT) '--pretty=format:%cD' | head -n1 )" "+%Y%m%d%H%M%S")~$(ARCHIVE)
endif
tar: STAGING=/tmp/usmb-$(VERSION)