source: trunk/base/portmgr/dprsyncup @ 15631

Last change on this file since 15631 was 15338, checked in by jmpp, 15 years ago

Submitted by: jmpp@
Reviewed by: jberry@

The pormgr/ dir is now out of src/, as it doesn't have much to do with our sources.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/sh
2# fkr, jberry, yeled
3# checks out both HEAD and then the CVS Tag specified in $RELEASE_TAG_FILE
4# made for dulcinea 2005-12-06
5# TODO should clean up after itself.
6# TODO shouldn't refer to the Tag as "dp1.0"
7
8DPROOT="/Volumes/bigsrc/darwinports"
9RELEASE_TAG_FILE="base/config/RELEASE_TAG"
10
11# Check out HEAD
12export HOME=/var/root
13TMPDIR=dp
14cd ${DPROOT} ; cvs -q -R -d /cvs/od co -P -d ${TMPDIR}.tmp darwinports
15rsync -q --exclude=.cvsignore --exclude=CVS -a --delete ${DPROOT}/${TMPDIR}.tmp/ ${DPROOT}/${TMPDIR}/
16#rsync --dry-run --exclude=.cvsignore --exclude=CVS -a --delete ${DPROOT}/${TMPDIR}.tmp/ ${DPROOT}/${TMPDIR}/
17echo `date -u +%s` > ${DPROOT}/${TMPDIR}/TIMESTAMP
18
19# Extract the release tag from HEAD
20read RELEASE_TAG < ${DPROOT}/${TMPDIR}/${RELEASE_TAG_FILE}
21[ -n "${RELEASE_TAG}" ] || ( echo "no RELEASE_TAG specified in cvs HEAD" ; exit 1 )
22
23# Checkout from the release tag specified in HEAD
24export HOME=/var/root
25TMPDIR=dp1.0
26cd ${DPROOT} ; cvs -q -R -d /cvs/od co -r ${RELEASE_TAG} -P -d ${TMPDIR}.tmp darwinports
27rsync -q --exclude=.cvsignore --exclude=CVS -a --delete ${DPROOT}/${TMPDIR}.tmp/ ${DPROOT}/${TMPDIR}/
28#rsync --dry-run --exclude=.cvsignore --exclude=CVS -a --delete ${DPROOT}/${TMPDIR}.tmp/ ${DPROOT}/${TMPDIR}/
29echo `date -u +%s` > ${DPROOT}/${TMPDIR}/TIMESTAMP
30
Note: See TracBrowser for help on using the repository browser.