Changeset 19323 for trunk/base


Ignore:
Timestamp:
Aug 30, 2006, 5:20:00 AM (14 years ago)
Author:
jberry@…
Message:

Fixes to avoid unnecessary changing of file dates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/portmgr/mprsyncup

    r19322 r19323  
    1515# Check out HEAD
    1616TMPDIR=dp
    17 cd ${DPROOT}
    18 rm -Rf ${DPROOT}/${TMPDIR}.tmp
    19 #cvs -q -R -d /cvs/od co -P -d ${TMPDIR}.tmp darwinports
    20 $SVN checkout ${REPO_BASE}/trunk ${DPROOT}/${TMPDIR}.tmp
     17if [ -d ${DPROOT}/${TMPDIR}.tmp ]; then
     18        $SVN update ${DPROOT}/${TMPDIR}.tmp
     19else
     20        $SVN checkout ${REPO_BASE}/trunk ${DPROOT}/${TMPDIR}.tmp
     21fi
    2122rsync -q --exclude=.svn -a --delete ${DPROOT}/${TMPDIR}.tmp/ ${DPROOT}/${TMPDIR}/
    2223echo `date -u +%s` > ${DPROOT}/${TMPDIR}/TIMESTAMP
     
    2829# Checkout from the release tag specified in HEAD
    2930TMPDIR=dp1.0
    30 cd ${DPROOT}
    31 rm -Rf ${DPROOT}/${TMPDIR}.tmp
    32 #cvs -q -R -d /cvs/od co -r ${RELEASE_TAG} -P -d ${TMPDIR}.tmp darwinports
    33 $SVN checkout ${RELEASE_URL} ${DPROOT}/${TMPDIR}.tmp
     31if [ -d ${DPROOT}/${TMPDIR}.tmp ]; then
     32        $SVN switch ${RELEASE_URL} ${DPROOT}/${TMPDIR}.tmp
     33else
     34        $SVN checkout ${RELEASE_URL} ${DPROOT}/${TMPDIR}.tmp
     35fi
    3436rsync -q --exclude=.svn -a --delete ${DPROOT}/${TMPDIR}.tmp/ ${DPROOT}/${TMPDIR}/
    3537echo `date -u +%s` > ${DPROOT}/${TMPDIR}/TIMESTAMP
Note: See TracChangeset for help on using the changeset viewer.