[deployiso] osdn project based on profile

This commit is contained in:
Bernhard Landauer 2018-04-14 12:26:49 +02:00
parent 14ff48abe0
commit 4f74f8c9e1
3 changed files with 14 additions and 3 deletions

View file

@ -22,6 +22,7 @@ import ${LIBDIR}/util-publish.sh
show_profile(){
prepare_transfer "$1"
info "Profile: [$1]"
msg2 "project: %s" "${project}"
msg2 "src_dir: ${src_dir}"
msg2 "target_dir: ${url}/${target_dir}/"
}
@ -54,7 +55,6 @@ display_settings(){
msg "REMOTE:"
msg2 "account: %s" "${account}"
msg2 "host: %s" "${host}"
msg2 "project: %s" "${project}"
msg "UPLOAD QUEUE:"
run show_profile "${build_list_iso}"

View file

@ -39,6 +39,7 @@ make_torrent(){
prepare_transfer(){
profile="$1"
edition=$(get_edition "${profile}")
[[ -z ${project} ]] && project="$(get_project)"
url=$(connect)
target_dir="${profile}/${dist_release}"

View file

@ -324,8 +324,6 @@ init_deployiso(){
host="osdn.net"
[[ -z ${project} ]] && project="[SetProject]"
[[ -z ${account} ]] && account="[SetUser]"
[[ -z ${limit} ]] && limit=100
@ -435,6 +433,18 @@ get_edition(){
echo ${path##*/}
}
get_project(){
case "${edition}" in
'manjaro')
project="manjaro"
;;
'community')
project="manjaro-community"
;;
esac
echo "${project}"
}
reset_profile(){
unset displaymanager
unset autologin