[Build] Move directory into tizenfx git repo when ./build.sh pack
authorWonyoung Choi <wy80.choi@samsung.com>
Mon, 11 Mar 2019 01:13:23 +0000 (10:13 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Mon, 11 Mar 2019 01:13:23 +0000 (10:13 +0900)
build.sh

index d529ac2..821253a 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -50,7 +50,9 @@ cmd_dummy_build() {
 cmd_pack() {
   VERSION=$1
   if [ -z "$VERSION" ]; then
+    pushd $SCRIPT_DIR > /dev/null
     VERSION=$VERSION_PREFIX.$((10000+$(git rev-list --count HEAD)))
+    popd > /dev/null
   fi
 
   $RUN_BUILD /t:pack /p:Version=$VERSION