From 20ab7af62e0926227c7c39c2910bfeaed1a03724 Mon Sep 17 00:00:00 2001 From: Ho Sy Tan Date: Mon, 16 Jun 2025 15:19:13 +0700 Subject: [PATCH] 2025-06-16 15:19:13 --- scripts/util/util_git_push.sh | 24 ++++++++++++++++++++++++ scripts/util/util_git_release.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100755 scripts/util/util_git_push.sh create mode 100755 scripts/util/util_git_release.sh diff --git a/scripts/util/util_git_push.sh b/scripts/util/util_git_push.sh new file mode 100755 index 0000000..b97794a --- /dev/null +++ b/scripts/util/util_git_push.sh @@ -0,0 +1,24 @@ +#!/bin/bash +################################################################################ +# Intended use: Compile and extract software packages +# +# Notes: This script support Linux Bash shell script only +# Install Bash from https://www.gnu.org/software/bash/ +# +# Copyright (C) 2015 - 2025, CT129 Dev Team +################################################################################ + +export GIT_BRACNH="master" + +export TIMESTAMP=`date +"%Y-%m-%d %H:%M:%S"` +export SCRIPT=$(readlink -f "$0") +export SCRIPT_PATH=$(dirname "$SCRIPT") +export SRC_DIR=${SCRIPT_PATH}/../.. + +cd ${SRC_DIR} +git add . +git commit -m "${TIMESTAMP}" +git push -u origin ${GIT_BRACNH} +################################################################################ +# BASH SCRIPT ON LINUX/UNIX - END +################################################################################ \ No newline at end of file diff --git a/scripts/util/util_git_release.sh b/scripts/util/util_git_release.sh new file mode 100755 index 0000000..8381c23 --- /dev/null +++ b/scripts/util/util_git_release.sh @@ -0,0 +1,28 @@ +#!/bin/bash +################################################################################ +# Intended use: Compile and extract software packages +# +# Notes: This script support Linux Bash shell script only +# Install Bash from https://www.gnu.org/software/bash/ +# +# Copyright (C) 2015 - 2025, CT129 Dev Team +################################################################################ + +export GIT_BRACNH="master" +export GIT_TAG="1.6.5-20250616" + +export TIMESTAMP=`date +"%Y-%m-%d %H:%M:%S"` +export SCRIPT=$(readlink -f "$0") +export SCRIPT_PATH=$(dirname "$SCRIPT") +export SRC_DIR=${SCRIPT_PATH}/../.. + +cd ${SRC_DIR} +git add . +git commit -m "${TIMESTAMP}" +git tag -d ${GIT_TAG} +git push origin :refs/tags/${GIT_TAG} +git tag -a ${GIT_TAG} -m ${GIT_TAG} +git push --tags +################################################################################ +# BASH SCRIPT ON LINUX/UNIX - END +################################################################################ \ No newline at end of file