mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
config/path: add function to get version
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
e814f2f38e
commit
e9133d68c3
10
config/path
10
config/path
@ -348,3 +348,13 @@ add_group() {
|
|||||||
echo "$1:x:$2:$3" >> ${INSTALL}/etc/group
|
echo "$1:x:$2:$3" >> ${INSTALL}/etc/group
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_version() {
|
||||||
|
if [ "$OPENELEC_VERSION" = devel -o "$OPENELEC_VERSION" = debug ]; then
|
||||||
|
BUILD_DATE=`date +%Y%m%d`
|
||||||
|
GIT_BUILD=`git log --pretty=format:'' | wc -l`
|
||||||
|
OPENELEC_VERSION=$OPENELEC_VERSION-$BUILD_DATE-r$GIT_BUILD
|
||||||
|
fi
|
||||||
|
|
||||||
|
TARGET_VERSION="$PROJECT.$TARGET_ARCH-$OPENELEC_VERSION"
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user