mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/image: add support to define official builds
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
cfe1186854
commit
2f2596898e
@ -233,7 +233,7 @@ dashes="==========================="
|
||||
show_config() {
|
||||
dashes="==========================="
|
||||
config_message="$config_message\n $dashes$dashes$dashes"
|
||||
config_message="$config_message\n Configuration for $DISTRONAME"
|
||||
config_message="$config_message\n Configuration for $DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial"))"
|
||||
config_message="$config_message\n $dashes$dashes$dashes"
|
||||
|
||||
# Build options
|
||||
|
@ -81,18 +81,24 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
||||
echo "$PROJECT.$TARGET_ARCH" > $INSTALL/etc/arch
|
||||
echo "$OPENELEC_VERSION" > $INSTALL/etc/version
|
||||
echo "$TARGET_VERSION" > $INSTALL/etc/release
|
||||
echo "$DISTRONAME - Version: $OPENELEC_VERSION" > $INSTALL/etc/openelec-release
|
||||
echo "$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION" > $INSTALL/etc/openelec-release
|
||||
if [ -n "$GIT_HASH" ]; then
|
||||
echo "$GIT_HASH" >> $INSTALL/etc/gitrev
|
||||
fi
|
||||
|
||||
if [ "$OFFICIAL" = "yes" ]; then
|
||||
echo "official" > $INSTALL/etc/build
|
||||
else
|
||||
echo "unofficial" > $INSTALL/etc/build
|
||||
fi
|
||||
|
||||
# create /etc/issue
|
||||
echo $GREETING0 > $INSTALL/etc/issue
|
||||
echo $GREETING1 >> $INSTALL/etc/issue
|
||||
echo $GREETING2 >> $INSTALL/etc/issue
|
||||
echo $GREETING3 >> $INSTALL/etc/issue
|
||||
echo $GREETING4 >> $INSTALL/etc/issue
|
||||
echo "$DISTRONAME Version: $OPENELEC_VERSION" >> $INSTALL/etc/issue
|
||||
echo "$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) Version: $OPENELEC_VERSION" >> $INSTALL/etc/issue
|
||||
if [ -n "$GIT_HASH" ]; then
|
||||
echo "$DISTRONAME git: $GIT_HASH" >> $INSTALL/etc/issue
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user