From 0a590aa8673c04b56e98d4e4c0b4b71477d43757 Mon Sep 17 00:00:00 2001 From: "jaewon81.lim" Date: Tue, 26 Jul 2011 21:10:38 +0900 Subject: [PATCH] modified packaging script for 2nd parameter --- packaging_profiler.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packaging_profiler.sh b/packaging_profiler.sh index 0a36936..f6759ea 100755 --- a/packaging_profiler.sh +++ b/packaging_profiler.sh @@ -32,7 +32,7 @@ package() 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} ;; @@ -40,7 +40,7 @@ package() upload_directory=/packages/${current_date}_PACKAGES_${upload_platform_name} ;; *) - echo "$2 is not supported." + echo "${branch} is not supported." exit 1 ;; esac @@ -109,9 +109,16 @@ package() 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 -- 2.7.4