Changeset 290

Show
Ignore:
Timestamp:
12-05-2008 13:23:31 (5 years ago)
Author:
jppavao
Message:

The nightly builds directory now features a symbolic link pointing to the most recent build available.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/nightly_build/make-nightly-build.sh

    r272 r290  
    2222 
    2323#################################### 
    24 . Useful functions 
     24Useful functions 
    2525 
    2626BASE_DIR=`pwd` 
     
    3232 
    3333#################################### 
    34 # 1. Make a new build 
     34# Make a new build 
    3535 
    3636echo 
     
    110110 
    111111#################################### 
    112 # 2. Generate the appcast description for this new build 
     112#  Update the symbolic link pointing to the most recent build 
     113 
     114cd "${BUILDS_DIR}" 
     115 
     116LATEST_BUILD_LINK_NAME='SAPO_Messenger-latest_build.zip' 
     117 
     118rm "$LATEST_BUILD_LINK_NAME" 
     119ln -s "$NEW_APP_ARCHIVE_FILENAME" "$LATEST_BUILD_LINK_NAME" 
     120 
     121cd .. 
     122 
     123 
     124#################################### 
     125#  Generate the appcast description for this new build 
    113126 
    114127SNIPPET_XML_FILENAME="${BUILD_NR}_svnlog.xml" 
     
    129142 
    130143#################################### 
    131 # 3. Clean up old files 
     144# Clean up old files 
    132145 
    133146for B in `list_sorted_available_build_nrs | tail +$(( $MAX_NR_BUILDS_TO_KEEP + 1 ))`; do 
     
    139152 
    140153#################################### 
    141 # 4. Re-generate the appcast feed 
     154# Re-generate the appcast feed 
    142155 
    143156cat > "${BUILDS_DIR}/${APPCAST_FEED_FILENAME}" <<ENDOFHEAD 
     
    155168        {       echo '<item>' 
    156169                echo "    <title>Nightly Build ${B}</title>" 
    157     echo '    <description><![CDATA[' 
     170                echo '    <description><![CDATA[' 
    158171                 
    159172                cat "${APPCAST_FEED_SNIPPETS_DIR}/${B}_description.html" 
     
    180193 
    181194#################################### 
    182 # 5. Rsync with the server 
     195# Rsync with the server 
    183196 
    184197./sync-nightly-builds-with-server.sh