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