From 57502034c9cd67a8c182e8c56cc69c67e3d49d29 Mon Sep 17 00:00:00 2001 From: p0isk Date: Fri, 10 Dec 2021 15:59:56 +0300 Subject: [PATCH] Add OPENIPC_VERSION --- scripts/executing_commands_for_glibc.sh | 4 +++- scripts/executing_commands_for_musl.sh | 4 +++- scripts/executing_commands_for_uclibc.sh | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/executing_commands_for_glibc.sh b/scripts/executing_commands_for_glibc.sh index c94c8861..f1dc1a86 100755 --- a/scripts/executing_commands_for_glibc.sh +++ b/scripts/executing_commands_for_glibc.sh @@ -3,7 +3,9 @@ # Please check BR2_ROOTFS_POST_BUILD_SCRIPT option in config # -date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release +GITHUB_VERSION="${BRANCH_NAME}+${GIT_HASH}" +RELEASE_DATE=$(date "+%y.%m.%d") +echo "OPENIPC_VERSION=${GITHUB_VERSION}, 2.${RELEASE_DATE:1}" >>${TARGET_DIR}/usr/lib/os-release # echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc"' # diff --git a/scripts/executing_commands_for_musl.sh b/scripts/executing_commands_for_musl.sh index 906668af..7c16f7bf 100755 --- a/scripts/executing_commands_for_musl.sh +++ b/scripts/executing_commands_for_musl.sh @@ -3,7 +3,9 @@ # Please check BR2_ROOTFS_POST_BUILD_SCRIPT option in config # -date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release +GITHUB_VERSION="${BRANCH_NAME}+${GIT_HASH}" +RELEASE_DATE=$(date "+%y.%m.%d") +echo "OPENIPC_VERSION=${GITHUB_VERSION}, 2.${RELEASE_DATE:1}" >>${TARGET_DIR}/usr/lib/os-release # echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="musl"' # diff --git a/scripts/executing_commands_for_uclibc.sh b/scripts/executing_commands_for_uclibc.sh index 20c5a971..3da04938 100755 --- a/scripts/executing_commands_for_uclibc.sh +++ b/scripts/executing_commands_for_uclibc.sh @@ -3,7 +3,9 @@ # Please check BR2_ROOTFS_POST_BUILD_SCRIPT option in config # -date "+OPENIPC_VERSION=2.1.%m.%d" >>${TARGET_DIR}/usr/lib/os-release +GITHUB_VERSION="${BRANCH_NAME}+${GIT_HASH}" +RELEASE_DATE=$(date "+%y.%m.%d") +echo "OPENIPC_VERSION=${GITHUB_VERSION}, 2.${RELEASE_DATE:1}" >>${TARGET_DIR}/usr/lib/os-release # echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc"' #