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

Diff of /eclass/darcs.eclass

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

Revision 1.3 Revision 1.4
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.3 2006/12/18 11:51:06 kosmikus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.4 2007/01/06 18:46:49 kosmikus 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#
112 112
113} 113}
114 114
115 115
116darcs_src_unpack() { 116darcs_src_unpack() {
117 local EDARCS_SHOPT
117 118
118 debug-print-function $FUNCNAME $* 119 debug-print-function $FUNCNAME $*
119 120
120 debug-print "$FUNCNAME: init: 121 debug-print "$FUNCNAME: init:
121 EDARCS_DARCS_CMD=$EDARCS_DARCS_CMD 122 EDARCS_DARCS_CMD=$EDARCS_DARCS_CMD
135 136
136 # probably redundant, but best to make sure 137 # probably redundant, but best to make sure
137 # Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside. 138 # Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside.
138 mkdir -p "${WORKDIR}/${P}" 139 mkdir -p "${WORKDIR}/${P}"
139 140
141 EDARCS_SHOPT=$(shopt -p dotglob)
140 shopt -s dotglob # get any dotfiles too. 142 shopt -s dotglob # get any dotfiles too.
141 cp -Rf "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}" 143 cp -Rf "$EDARCS_TOP_DIR/$EDARCS_LOCALREPO"/* "${WORKDIR}/${P}"
144 eval ${EDARCS_SHOPT} # reset shopt
142 145
143 einfo "Darcs repository contents are now in ${WORKDIR}/${P}" 146 einfo "Darcs repository contents are now in ${WORKDIR}/${P}"
144 147
145} 148}
146 149

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20