Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将时间戳附加到 Android.mk 文件中的构建属性值。有没有办法在 Android 制作文件中获取当前时间戳(格式“YYMMDD”)?
我不知道 Android make 文件是否有特定内容,但以下在 GNUmake 中有效:
DATE := $(shell date --utc +%Y%m%d) $(info Current UTC date is $(DATE))