pa: build.sh: Fix PA_VERSION

Change-Id: Iccb732ccbfdaeb049a79db54ac6aff806531a14c
This commit is contained in:
TheStrix 2019-12-28 19:05:45 +05:30
parent b816a850c7
commit c8b1aa196b
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# PA build helper script
# red = errors, cyan = warnings, green = confirmations, blue = informational
@ -67,7 +67,8 @@ if [ "$(update-alternatives --list javac | wc -l)" -gt 1 ]; then
fi
# Grab the build version
PA_VERSION=$(cat $DIR_ROOT/vendor/pa/props.mk | grep 'PA_VERSION := *' | sed 's/.*= //')
PA_VERSION="$(cat $DIR_ROOT/vendor/pa/config/version.mk | grep 'PA_VERSION_FLAVOR := *' | sed 's/.*= //') \
$(cat $DIR_ROOT/vendor/pa/config/version.mk | grep 'PA_VERSION_CODE := *' | sed 's/.*= //')"
# Grab all the command-line parameters
export DEVICE=$1