messing with the date again, this time with time zone and UTC offset
This commit is contained in:
+2
-2
@@ -36,8 +36,8 @@ increment_version:
|
||||
build=0; \
|
||||
fi; \
|
||||
echo "extern const unsigned long version_num = $$build;" > ver.cpp; \
|
||||
echo "extern const char *const version_time = \"`date +"%H:%M:%S"`\";" >> ver.cpp;
|
||||
echo "extern const char *const version_date = \"`date +"%Y/%m/%d"`\";" >> ver.cpp;
|
||||
echo "extern const char *const version_time = \"`date +"%H:%M:%S %Z (UTC%:z)"`\";" >> ver.cpp;
|
||||
echo "extern const char *const version_date = \"`date +"%Y%m%d"`\";" >> ver.cpp;
|
||||
|
||||
ver.cpp:
|
||||
$(MAKE) increment_version
|
||||
|
||||
Reference in New Issue
Block a user