Skip to content

Commit

Permalink
添加编译日期
Browse files Browse the repository at this point in the history
  • Loading branch information
981213 committed Feb 3, 2015
1 parent 6efdf03 commit afdd3ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion include/version.mk
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ VERSION_TAINTS := $(strip $(foreach taint,$(VERSION_TAINT_SPECS), \

PKG_CONFIG_DEPENDS += $(foreach taint,$(VERSION_TAINT_SPECS),$(call taint2sym,$(taint)))

BUILT_DATE := $(shell date)

VERSION_SED:=$(SED) 's,%U,$(VERSION_REPO),g' \
-e 's,%V,$(VERSION_NUMBER),g' \
-e 's,%v,\L$(subst $(space),_,$(VERSION_NUMBER)),g' \
Expand All @@ -82,6 +84,7 @@ VERSION_SED:=$(SED) 's,%U,$(VERSION_REPO),g' \
-e 's,%t,$(VERSION_TAINTS),g' \
-e 's,%M,$(VERSION_MANUFACTURER),g' \
-e 's,%P,$(VERSION_PRODUCT),g' \
-e 's,%h,$(VERSION_HWREV),g'
-e 's,%h,$(VERSION_HWREV),g' \
-e 's,%B,$(BUILT_DATE),g'

VERSION_SED_SCRIPT:=$(subst '\'','\'\\\\\'\'',$(VERSION_SED))
2 changes: 1 addition & 1 deletion package/base-files/files/etc/openwrt_release
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ DISTRIB_RELEASE='%C'
DISTRIB_REVISION='%R'
DISTRIB_CODENAME='%n'
DISTRIB_TARGET='%S'
DISTRIB_DESCRIPTION='%D %N %V'
DISTRIB_DESCRIPTION='%D %N %V.Built at %B'
DISTRIB_TAINTS='%t'

0 comments on commit afdd3ba

Please sign in to comment.