current_date=`date +%Y%m%d`
upload_server=172.21.111.180
- upload_directory=/packages/${current_date}_PACKAGES_${upload_platform_name}
+ case $2 in
+ master)
+ upload_directory=/packages/PACKAGES_${upload_platform_name}
+ ;;
+ release)
+ upload_directory=/packages/${current_date}_PACKAGES_${upload_platform_name}
+ ;;
+ *)
+ echo "$2 is not supported."
+ exit 1
+ ;;
+ esac
+
upload_user=core
upload_password=tmaxcore
current_date=`date +%Y%m%d`
upload_server=172.21.111.180
- upload_directory=/packages/${current_date}_PACKAGES_${upload_platform_name}
+ case $2 in
+ master)
+ upload_directory=/packages/PACKAGES_${upload_platform_name}
+ ;;
+ release)
+ upload_directory=/packages/${current_date}_PACKAGES_${upload_platform_name}
+ ;;
+ *)
+ echo "$2 is not supported."
+ exit 1
+ ;;
+ esac
+
upload_user=core
upload_password=tmaxcore