From: gyeongseok.seo Date: Fri, 27 Jul 2012 12:15:00 +0000 (+0900) Subject: [Title] Fixed build script - command script copy depend on OS X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e62dc29a4be6931a89b0c96a9c1fc828eeb52d0;p=sdk%2Ftools%2Fcli.git [Title] Fixed build script - command script copy depend on OS [Type] Enhancement [Module] cli [Priority] Minor [Jira#] [Redmine#] 5831 [Problem] [Cause] [Solution] [TestCase] Change-Id: Iacc1a667d3b2018d1493d9569a373de706745723 --- diff --git a/package/build.ubuntu-32 b/package/build.ubuntu-32 index 0582d18..aa7d120 100755 --- a/package/build.ubuntu-32 +++ b/package/build.ubuntu-32 @@ -50,7 +50,21 @@ build() install() { mkdir -p $TARGET/lib - cp -r $PROJECT_HOME/doc/install/bin_ $TARGET/bin + + # copy command + case ${TARGET_OS} in + ubuntu-32|ubuntu-64|macos-64) + cp -r $PROJECT_HOME/doc/install/bin_ $TARGET/bin + rm $TARGET/bin/*.bat + ;; + windows-32|windows-64) + cp -r $PROJECT_HOME/doc/install/bin_/*.bat $TARGET/bin + ;; + *) + echo "${TARGET_OS} is not support yet." + exit 1 + ;; + esac cp -r $PROJECT_HOME/doc/install/conf $TARGET/conf cp -r $LIB/* $TARGET/lib cp dist/*.jar $TARGET/lib diff --git a/package/build.ubuntu-64 b/package/build.ubuntu-64 index 0582d18..aa7d120 100755 --- a/package/build.ubuntu-64 +++ b/package/build.ubuntu-64 @@ -50,7 +50,21 @@ build() install() { mkdir -p $TARGET/lib - cp -r $PROJECT_HOME/doc/install/bin_ $TARGET/bin + + # copy command + case ${TARGET_OS} in + ubuntu-32|ubuntu-64|macos-64) + cp -r $PROJECT_HOME/doc/install/bin_ $TARGET/bin + rm $TARGET/bin/*.bat + ;; + windows-32|windows-64) + cp -r $PROJECT_HOME/doc/install/bin_/*.bat $TARGET/bin + ;; + *) + echo "${TARGET_OS} is not support yet." + exit 1 + ;; + esac cp -r $PROJECT_HOME/doc/install/conf $TARGET/conf cp -r $LIB/* $TARGET/lib cp dist/*.jar $TARGET/lib