| 1 | #!/bin/sh |
| 2 | |
| 3 | echo "GEN $1" |
| 4 | echo "// This file was generated by makedebversionhdr |
| 5 | #define MICROPY_GIT_TAG \"v$(dpkg-parsechangelog -l "$2" --show-field Version)\" |
| 6 | #define MICROPY_GIT_HASH \"(null)\" |
| 7 | #define MICROPY_BUILD_DATE \"$(TZ=UTC date --date=@$(dpkg-parsechangelog -l "$2" --show-field Timestamp) +%F)\"" > "$1" |