modified packaging script for changes branch policy
authorjaewon81.lim <jaewon81.lim@samsung.com>
Mon, 25 Jul 2011 09:06:09 +0000 (18:06 +0900)
committerjaewon81.lim <jaewon81.lim@samsung.com>
Mon, 25 Jul 2011 09:06:09 +0000 (18:06 +0900)
packaging_profiler.sh

index 670a302..0a36936 100755 (executable)
@@ -32,7 +32,18 @@ package()
 
        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