Menu

[f6005e]: / Utilities / Git-Start-Release.command  Maximize  Restore  History

Download this file

69 lines (58 with data), 2.1 kB

#!/opt/local/bin/zsh
############################################################# {{{1 ##########
#  Copyright © 2019 Martin Krischik «krischik@users.sourceforge.net»
#############################################################################
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or ENDIFFTNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see «http://www.gnu.org/licenses/».
############################################################# }}}1 ##########

if test -z "${PROJECT_HOME}"; then
    source "${0:h}/Setup.command"
fi

setopt Err_Exit
setopt No_XTrace

if test ${#} -eq 1; then
    local   in_Task="${1}"
    local Task_Type="${in_Task%%[0-9]*}"
    local   Task_No="${in_Task#${Task_Type}}"

    pushd "${PROJECT_HOME}"
	git status
	git submodule foreach git status

	echo "Task Type   : ${Task_Type}"
	echo "Task Number : ${Task_No}"
	read -sk1 "? start release (Y/N): "
	echo

	if test "${REPLY:u}" = "Y"; then
	    for I in				\
		"Frameworks/radiator"		\
		"Frameworks/steem-ruby"		\
		"Frameworks/steem-mechanize"	\
		"Wiki"				\
		"."
	    do
		pushd "${I}"
		    echo "### Finishe ${Task_Type} «${Task_No}» for «${I}»"

		    git flow release start "${in_Task}"
		popd
	    done; unset I
	fi

	gvim Frameworks/**/version.rb 
    popd
else
   echo '
Git-Finish-Feature Task

    Task    Task to finish
'
fi

############################################################## {{{1 ##########
# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.