Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | partition="$1" |
| 4 | |
| 5 | if [ "$#" -ne 1 ]; then |
Anton Hansson | 1f8729e | 2018-08-15 12:11:55 +0100 | [diff] [blame] | 6 | echo "Usage: $0 <partition>" 1>&2 |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 7 | exit 1 |
| 8 | fi |
| 9 | |
Anton Hansson | 1f8729e | 2018-08-15 12:11:55 +0100 | [diff] [blame] | 10 | echo "# begin common build properties" |
| 11 | echo "# autogenerated by $0" |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 12 | |
Anton Hansson | 1f8729e | 2018-08-15 12:11:55 +0100 | [diff] [blame] | 13 | echo "ro.${partition}.build.date=`$DATE`" |
| 14 | echo "ro.${partition}.build.date.utc=`$DATE +%s`" |
| 15 | echo "ro.${partition}.build.fingerprint=$BUILD_FINGERPRINT" |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 16 | echo "ro.${partition}.build.id=$BUILD_ID" |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 17 | echo "ro.${partition}.build.tags=$BUILD_VERSION_TAGS" |
Anton Hansson | 1f8729e | 2018-08-15 12:11:55 +0100 | [diff] [blame] | 18 | echo "ro.${partition}.build.type=$TARGET_BUILD_TYPE" |
| 19 | echo "ro.${partition}.build.version.incremental=$BUILD_NUMBER" |
| 20 | echo "ro.${partition}.build.version.release=$PLATFORM_VERSION" |
| 21 | echo "ro.${partition}.build.version.sdk=$PLATFORM_SDK_VERSION" |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 22 | |
Anton Hansson | 1f8729e | 2018-08-15 12:11:55 +0100 | [diff] [blame] | 23 | echo "ro.product.${partition}.brand=$PRODUCT_BRAND" |
| 24 | echo "ro.product.${partition}.device=$TARGET_DEVICE" |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 25 | echo "ro.product.${partition}.manufacturer=$PRODUCT_MANUFACTURER" |
| 26 | echo "ro.product.${partition}.model=$PRODUCT_MODEL" |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 27 | echo "ro.product.${partition}.name=$PRODUCT_NAME" |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 28 | |
Anton Hansson | 1f8729e | 2018-08-15 12:11:55 +0100 | [diff] [blame] | 29 | echo "# end common build properties" |