[Crossfire-wiki] [Crossfire DokuWiki] page changed: user:kbulgrien

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun May 10 23:08:44 CDT 2009


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2009/05/10 23:08
User        : kbulgrien
Edit Summary: Update svn-co.sh to reduce overhead of branch checkouts.

@@ -25,8 +25,9 @@
  ====Portable C/C++====
      * [[http://www.gnu.org/software/automake/manual/autoconf/Portable-C-and-C_002b_002b.html#Portable-C-and-C_002b_002b|Automake Manual Chapter]]
  
  =====SVN Scripts=====
+ 
  
  
  
  
@@ -64,8 +65,9 @@
        echo -e "\nsvn-co.sh: Error: Specify branch version.\n"
        exit 1;
      else
        COTYPE="branches/${2}"
+       allmodules="${branchmodules}"
      fi
    else
      echo -e "\nsvn-co.sh: Error: Usage:\n"
      echo -e "  svn-co.sh trunk"
@@ -114,16 +116,15 @@
      path="${COTYPE%%/*}"
      if [ "${COTYPE}" != "${COTYPE##branch*}" ]
      then
        #
-       # Branch
+       # Runs only for branch checkouts
        #
        for module in ${branchmodules}
        do
          svn update --depth=files ${module}/${path}
        done
        path="${path}/${COTYPE##*/}"
-       allmodules="${branchmodules}"
      fi
      for module in ${allmodules}
      do
        svn update --depth=infinity ${module}/${path}
@@ -138,9 +139,9 @@
    fi
    
    # Link the arch directory into the server directory tree.
    #
-   unlink $(pwd)/server/${COTYPE}/lib/arch
+   unlink $(pwd)/server/${COTYPE}/lib/arch 2>/dev/null
    ln -s $(pwd)/arch/${COTYPE} $(pwd)/server/${COTYPE}/lib/arch
    echo
  
  =====Configure Scripts=====


IP-Address  : 68.90.128.197
Old Revision: http://wiki.metalforge.net/doku.php/user:kbulgrien?rev=1242014217
New Revision: http://wiki.metalforge.net/doku.php/user:kbulgrien

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list