modified packaging script for 2nd parameter
authorjaewon81.lim <jaewon81.lim@samsung.com>
Tue, 26 Jul 2011 12:10:38 +0000 (21:10 +0900)
committerjaewon81.lim <jaewon81.lim@samsung.com>
Tue, 26 Jul 2011 12:10:38 +0000 (21:10 +0900)
packaging_profiler.sh

index 0a36936..f6759ea 100755 (executable)
@@ -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