modified for hudson auto build
authorsungmin82.ha <sungmin82.ha@samsung.com>
Mon, 25 Jul 2011 11:50:46 +0000 (20:50 +0900)
committersungmin82.ha <sungmin82.ha@samsung.com>
Mon, 25 Jul 2011 11:50:46 +0000 (20:50 +0900)
packaging_eventinjector.sh
packaging_eventinjector_wac.sh

index 8f4f8be..1e60704 100755 (executable)
@@ -31,7 +31,19 @@ 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
        
index 63226ef..f2a38d4 100755 (executable)
@@ -31,7 +31,19 @@ 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