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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Wed Nov 26 14:46:40 CST 2008


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

Date        : 2008/11/26 14:46
User        : 
Edit Summary: Minor fixes/updates to scripts.

@@ -47,13 +47,20 @@
  Create a shell script called **svn-co.sh** that contains the following:
  
  ==svn-co.sh==
  
-   #!/bin/bash
-   #
-   for dir in arch client maps server sounds
+   CMD=""
+   CWD=$(pwd)
+   URL="https://crossfire.svn.sourceforge.net/svnroot/crossfire"
+   for file in arch client maps server sounds
    do
-     svn co https://crossfire.svn.sourceforge.net/svnroot/crossfire/${dir}/trunk trunk/${dir}
+     DIR="${file}/trunk/"
+     if [ ! -d "${DIR}" ]
+     then
+       echo -e "\n${DIR}\n"
+       CMD="svn co ${*} ${URL}/${DIR} ${DIR}"
+       ${CMD}
+     fi
    done
    echo
  
  ==svn-up.sh==
@@ -61,19 +68,21 @@
  Create another shell script called **svn-up.sh** as follows:
  
    #!/bin/bash
    #
-   for co in trunk
+   CWD=$(pwd)
+   for co in arch client maps server sounds
    do
-     for dir in arch client maps server sounds
+     for dir in trunk
      do
        WORKING=${co}/${dir}
        if [ -d ${CWD}/${WORKING} ]
        then
          echo; echo ${WORKING}; echo
          cd ${CWD}/${WORKING}
          svn update
          cd ${CWD}
+       fi
      done
    done
    echo
  


IP-Address  : 68.88.122.208
Old Revision: http://wiki.metalforge.net/doku.php/user:kbulgrien?rev=1227717008
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