User: curvirgo
Date: 05/12/17 06:04:52

Modified:
 /ja/www/documents/develop/
  jabuild.function

Log:
 Add download opton, etc.

File Changes:

Directory: /ja/www/documents/develop/
=====================================

File [changed]: jabuild.function
Url: 
http://ja.openoffice.org/source/browse/ja/www/documents/develop/jabuild.function?r1=1.2&r2=1.3
Delta lines:  +44 -8
--------------------
--- jabuild.function    12 Dec 2005 08:56:20 -0000      1.2
+++ jabuild.function    17 Dec 2005 14:04:50 -0000      1.3
@@ -11,6 +11,7 @@
 
 OPTION:
        --debug         Debug mode
+       --download=[CVS TAG]    Download from CVS Repository and Build
        --pack          Packaging only
        --help          Print this help
 EOF
@@ -25,9 +26,16 @@
   for opt in $@
   do
     case ${opt} in
+      --curvirgo)
+        CURVIRGO_BUILD=Yes
+        ;;
       --debug)
         DEBUGMODE=Yes
         ;;
+      --download=*)
+        TAG=`echo ${opt} | sed 's/--download=//'`
+        DOWNLOAD_SOURCE=Yes
+        ;;
       --pack)
         PACKMODE=Yes
         ;;
@@ -61,7 +69,7 @@
   local DIR_NAME=${1}
   local MESSAGE=${2}
   [ -d ${DIR_NAME} ] || {
-    [ x${MESSAGE} = x ] || PrintMessage "${MESSAGE}"
+    [ x"${MESSAGE}" = x ] || PrintMessage "${MESSAGE}"
     mkdir -p -v ${DIR_NAME}
   }
 }
@@ -73,15 +81,44 @@
 {
   local FILE_LOCATE=${1}
   local FILE_NAME=${2}
-  [ ! -f ${TEMP_DIR}/${FILE_NAME} -o -f ${TEMP_DIR}/${FILE_NAMEE}.chk ] && {
+  [ ! -f ${TEMP_DIR}/${FILE_NAME} -o -f ${TEMP_DIR}/${FILE_NAME}.chk ] && {
     cd ${TEMP_DIR}
     touch ${TEMP_DIR}/${FILE_NAME}.chk
     wget -c ${FILE_LOCATE}/${FILE_NAME} -O ${TEMP_DIR}/${FILE_NAME} && rm -f 
${TEMP_DIR}/${FILE_NAME}.chk
+    [ $? = 0 ] || {
+      PrintMessage "${FILE_NAME} : Download failed !!"
+      exit
+    }
     cd ${SRC_ROOT}
   }
 }
 
 # ==================================================
+# CVSリポジトリからソースファイルをダウンロードする
+# ==================================================
+DownloadSourceFile ()
+{
+  local TAG=${1}
+  local CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs
+  [ x`basename ${PWD}` = x${TAG} ] || {
+    mkdir -p -v ${TAG}
+    cd ${TAG}
+  }
+  cvs checkout -r ${TAG} OpenOffice
+  if [ $? = 0 ]; then
+    SRC_ROOT=`pwd`
+    [ x${CURVIRGO_BUILD} = xYes ] && {
+      ln -sf ../buildtools/temp
+      ln -sf ../buildtools/jabuild
+      ln -sf ../buildtools/jabuild.function
+    }
+  else
+    PrintMessage "source file (TAG=${TAG}) : Download (from CVS Repository) 
failed !!"
+    exit
+  fi
+}
+
+# ==================================================
 # ビルドするプラットホームのチェックを行い表示する
 # ==================================================
 GetPlatform ()
@@ -131,7 +168,7 @@
   local CONFIG_FLAGS=${1}
   PrintMessage "Running configure script."
   cd ${SRC_ROOT}/config_office &> /dev/null
-  if [ $? ]; then
+  if [ $? = 0 ]; then
     eval ./configure ${CONFIG_FLAGS} || {
       PrintMessage "Configure failed. Fix it!"
       exit
@@ -286,7 +323,7 @@
       ;;
   esac
   cd ${SRC_ROOT}/instsetoo_native/util &> /dev/null
-  if [ $? ]; then
+  if [ $? = 0 ]; then
     if [ x${PACKAGE_FORMAT} = xnative ]; then
       dmake ${PACKAGE_TYPE} ${BUILD_OPTION}
     else
@@ -323,7 +360,6 @@
 {
   local PACKAGE_TYPE=${1}
   local PACKAGE_FORMAT=${2}
-  [ x${PACKAGE_FORMAT} = x ] && PACKAGE_FORMAT=native
   case ${PACKAGE_TYPE} in
     InstallSet)
       local PKG_DIR="${SRC_ROOT}/instsetoo_native/${OOOUTPATH}.pro/OpenOffice"




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

メールによる返信