common/environment: fix error message
This commit is contained in:
parent
15f26298aa
commit
0c4b812ad3
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
if [ -n "$SOURCE_DATE_EPOCH" ]; then
|
||||
CFLAGS+=" -Wno-builtin-macro-redefined -include$XBPS_STATEDIR/timestamp-macros.h"
|
||||
CXXFLAGS+=" -Wno-builtin-macro-redefined -include$XBPS_STATEDIR/timestamp-macros.h"
|
||||
printf > $XBPS_STATEDIR/timestamp-macros.h
|
||||
printf "" > $XBPS_STATEDIR/timestamp-macros.h
|
||||
for i in "DATE,%b %d %Y" "TIME,%H:%M:%S" "DATETIME,%b %d %Y %H:%M:%S"; do
|
||||
mcr=${i%%,*}
|
||||
val=$(LC_ALL=C date --date "@$SOURCE_DATE_EPOCH" +"${i#*,}")
|
||||
|
|
Loading…
Reference in a new issue