manjaro-tools/lib/util-publish.sh
udeved b2dd9282f6 util: add alternative version_gen
util-publish. create folders with rsync
2015-11-13 21:27:16 +01:00

24 lines
962 B
Bash

#!/bin/bash
#
# 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; version 2 of the License.
#
# 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.
create_release(){
ssh !${remote_user}@${shell_url} mkdir -pv ${remote_target}/${remote_project}/${iso_edition}/${dist_release}
}
upload(){
msg "Start upload ..."
local empty=/tmp/deploy
rsync -e ssh $empty/ ${sf_url}/${iso_edition}/
rsync -e ssh $empty/ ${sf_url}/${iso_edition}/${dist_release}/
rsync -avP --progress -e ssh ${src_dir}/ ${sf_url}/${iso_edition}/${dist_release}/${profile}
msg "Done upload"
msg3 "Time ${FUNCNAME}: $(elapsed_time ${timer_start}) minutes"
}