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

Diff of /eclass/darcs.eclass

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

Revision 1.17 Revision 1.18
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
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.17 2014/05/22 16:30:59 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.18 2015/01/01 21:09:28 slyfox Exp $
4 4
5# @ECLASS: darcs.eclass 5# @ECLASS: darcs.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# "Gentoo's Haskell Language team" <haskell@gentoo.org> 7# "Gentoo's Haskell Language team" <haskell@gentoo.org>
8# Sergei Trofimovich <slyfox@gentoo.org> 8# Sergei Trofimovich <slyfox@gentoo.org>
86 86
87# @FUNCTION: darcs_patchcount 87# @FUNCTION: darcs_patchcount
88# @DESCRIPTION: 88# @DESCRIPTION:
89# Internal function to determine amount of patches in repository. 89# Internal function to determine amount of patches in repository.
90darcs_patchcount() { 90darcs_patchcount() {
91 set -- $(HOME="${EDARCS_TOP_DIR}" ${EDARCS_DARCS_CMD} show repo | grep "Num Patches") 91 set -- $(HOME="${EDARCS_TOP_DIR}" ${EDARCS_DARCS_CMD} show repo --repodir="${EDARCS_TOP_DIR}/${EDARCS_LOCALREPO}" | grep "Num Patches")
92 # handle string like: " Num Patches: 3860" 92 # handle string like: " Num Patches: 3860"
93 echo ${3} 93 echo ${3}
94} 94}
95 95
96# @FUNCTION: darcs_fetch 96# @FUNCTION: darcs_fetch

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20