Ignore:
Timestamp:
Apr 1, 2009, 3:49:56 PM (11 years ago)
Author:
wsiegrist@…
Message:

Use trunk instead of release for generating the indexes so we can make PortIndex.quick

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/portmgr/jobs/PortIndexRegen.sh

    r47110 r48989  
    2424SVN_CONFIG_DIR=${ROOT}/svnconfig
    2525REPO_BASE=http://svn.macports.org/repository/macports
    26 RELEASE_URL_FILE="config/RELEASE_URL"
    2726SVN="/opt/local/bin/svn -q --non-interactive --config-dir $SVN_CONFIG_DIR"
    2827# Where to checkout the source code. This needs to exist!
     
    8180fi
    8281
    83 # Extract the release URL from HEAD
    84 read RELEASE_URL < ${ROOT}/${TMPDIR}/${RELEASE_URL_FILE}
    85 [ -n ${RELEASE_URL} ] || { echo "no RELEASE_URL specified in svn HEAD." >> $FAILURE_LOG; bail ; }
    86 
    87 # Checkout/update the release base
    88 if [ -d ${SRCTREE}/base ]; then
    89     $SVN switch ${RELEASE_URL} ${SRCTREE}/base > $FAILURE_LOG 2>&1 \
    90         || { echo "Updating base from ${RELEASE_URL} failed." >> $FAILURE_LOG; bail ; }
    91 else
    92     $SVN checkout ${RELEASE_URL} ${SRCTREE}/base > $FAILURE_LOG 2>&1 \
    93         || { echo "Checking out base from ${RELEASE_URL} failed." >> $FAILURE_LOG ; bail ; }
    94 fi
    9582echo `date -u +%s` > ${ROOT}/BASE-TIMESTAMP
    9683
    9784# (re)configure.
    98 cd ${SRCTREE}/base/ && \
     85cd ${ROOT}/${TMPDIR} && \
    9986    mkdir -p ${TCLPKG} && \
    10087    ./configure \
     
    10794# clean
    10895# (cleaning is useful because we don't want the indexing to fail because dependencies aren't properly computed).
    109 { cd ${SRCTREE}/base/ && make clean > $FAILURE_LOG 2>&1 ; } \
     96{ cd ${ROOT}/${TMPDIR} && make clean > $FAILURE_LOG 2>&1 ; } \
    11097    || { echo "make clean failed." >> $FAILURE_LOG ; bail ; }
    11198
    11299# (re)build
    113 { cd ${SRCTREE}/base/ && make > $FAILURE_LOG 2>&1 ; } \
     100{ cd ${ROOT}/${TMPDIR} && make > $FAILURE_LOG 2>&1 ; } \
    114101    || { echo "make failed." >> $FAILURE_LOG ; bail ; }
    115102
    116103# (re)install
    117 { cd ${SRCTREE}/base/ && make install > $FAILURE_LOG 2>&1 ; } \
     104{ cd ${ROOT}/${TMPDIR} && make install > $FAILURE_LOG 2>&1 ; } \
    118105    || { echo "make install failed." >> $FAILURE_LOG ; bail ; }
    119106
Note: See TracChangeset for help on using the changeset viewer.