current_date=`date +%Y%m%d`
upload_server=172.21.111.180
- case $2 in
+ case ${branch} in
master)
upload_directory=/packages/PACKAGES_${upload_platform_name}
;;
upload_directory=/packages/${current_date}_PACKAGES_${upload_platform_name}
;;
*)
- echo "$2 is not supported."
+ echo "${branch} is not supported."
exit 1
;;
esac
if [ "x$1" = "x" ]
then
- echo "Usage : packaging_profiler.sh PLATFORM_NAME"
+ echo "Usage : packaging_profiler.sh PLATFORM_NAME BRANCH_NAME"
exit 1
fi
+if [ "x$2" = "x" ]
+then
+ echo "Usage : packaging_profiler.sh PLATFORM_NAME BRANCH_NAME"
+ exit 1
+fi
+
platform=$1
+branch=$2
package