/[gentoo-x86]/eclass/darcs.eclass
Gentoo

Diff of /eclass/darcs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 2004 Gentoo Technologies, Inc. 1# Copyright 2004 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.5 2007/06/17 21:33:57 kolmodin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.6 2007/11/01 19:24:24 kolmodin Exp $
4# 4#
5# darcs eclass author: Andres Loeh <kosmikus@gentoo.org> 5# darcs eclass author: Andres Loeh <kosmikus@gentoo.org>
6# tla eclass author: <rphillips@gentoo.org> 6# tla eclass author: <rphillips@gentoo.org>
7# Original Author: Jeffrey Yasskin <jyasskin@mail.utexas.edu> 7# Original Author: Jeffrey Yasskin <jyasskin@mail.utexas.edu>
8# 8#
140 # Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside. 140 # Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside.
141 mkdir -p "${WORKDIR}/${P}" 141 mkdir -p "${WORKDIR}/${P}"
142 142
143 EDARCS_SHOPT=$(shopt -p dotglob) 143 EDARCS_SHOPT=$(shopt -p dotglob)
144 shopt -s dotglob # get any dotfiles too. 144 shopt -s dotglob # get any dotfiles too.
145 cp -Rf "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}" 145 rsync -rlpgo --exclude="_darcs/" "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}"
146 eval ${EDARCS_SHOPT} # reset shopt 146 eval ${EDARCS_SHOPT} # reset shopt
147 147
148 einfo "Darcs repository contents are now in ${WORKDIR}/${P}" 148 einfo "Darcs repository contents are now in ${WORKDIR}/${P}"
149 149
150} 150}

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20