2025-06-16 13:29:19

This commit is contained in:
Ho Sy Tan 2025-06-16 13:29:19 +07:00
parent 8348ab91f4
commit e2527939f0
2 changed files with 52 additions and 0 deletions

24
scripts/util/util_git_push.sh Executable file
View file

@ -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 <dev@ct129.com>
################################################################################
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
################################################################################

View file

@ -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 <dev@ct129.com>
################################################################################
export GIT_BRACNH="master"
export GIT_TAG="5.3.73-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
################################################################################