Menu

[03a9b8]: / Utilities / Release_Sourceforge.command  Maximize  Restore  History

Download this file

92 lines (77 with data), 2.8 kB

#!/bin/zsh
########################################################### {{{1 ###########
#   Copyright (C) 2005,2006  Martin Krischik
#
#   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 2
#   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 FITNESS 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, write to the Free Software
#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
########################################################### }}}1 ###########

source ${0:h}/Setup.command

setopt No_XTrace
setopt No_Verbose
setopt SH_Word_Split
setopt Err_Exit
setopt CSH_Null_Glob
setopt Extended_Glob

if test -z "${1}"; then
    echo "
Usage:

    Release_Sourceforge module

Example:

    Release_Sourceforge Release_As_Repository

"
else
    in_Module="${1}"

    pushd "${PROJECT_HOME}"
	gcp --verbose --update					\
	    --target-directory="${SourceForce_Local}/Alire"	\
	    ${in_Module}/alire/archives/${in_Module}-*.tgz

	rsync				    \
	    --rsh="ssh"			    \
	    --archive			    \
	    --update			    \
	    --verbose			    \
	    --keep-dirlinks		    \
	    --exclude='*/.backups'	    \
	    --exclude='.backups'	    \
	    --exclude='.DS_Store'	    \
	    --exclude='.gitignore'	    \
	    --exclude='.gitkeep'	    \
	    --exclude='.localized'	    \
	    "${SourceForce_Local}/Alire/."  \
	    "${SourceForce_Remote}/Alire/."

	open "https://sourceforge.net/projects/wikibook-ada/files/Alire"

	echo 'Press key when toml file was created…'; read -k1 -s

	gcp --verbose --update					\
	    --target-directory="${SourceForce_Local}/Alire"	\
	    ${in_Module}/alire/releases/${in_Module}-*.toml

	rsync				    \
	    --rsh="ssh"			    \
	    --archive			    \
	    --update			    \
	    --verbose			    \
	    --keep-dirlinks		    \
	    --exclude='*/.backups'	    \
	    --exclude='.backups'	    \
	    --exclude='.DS_Store'	    \
	    --exclude='.gitignore'	    \
	    --exclude='.gitkeep'	    \
	    --exclude='.localized'	    \
	    "${SourceForce_Local}/Alire/."  \
	    "${SourceForce_Remote}/Alire/."
    popd
fi

########################################################### {{{1 ###########
# vim: set textwidth=0 nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
# vim: set filetype=zsh fileencoding=utf-8 fileformat=unix foldmethod=marker :
# vim: set nospell spelllang=en_gb :
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.