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

Diff of /eclass/darcs.eclass

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

Revision 1.2 Revision 1.3
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.2 2006/08/10 22:52:47 dcoutts Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.3 2006/12/18 11:51:06 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#
29 29
30# darcs command to run 30# darcs command to run
31[ -z "$EDARCS_DARCS_CMD" ] && EDARCS_DARCS_CMD="darcs" 31[ -z "$EDARCS_DARCS_CMD" ] && EDARCS_DARCS_CMD="darcs"
32 32
33# darcs commands with command-specific options 33# darcs commands with command-specific options
34[ -z "$EDARCS_GET_CMD" ] && EDARCS_GET_CMD="get" 34[ -z "$EDARCS_GET_CMD" ] && EDARCS_GET_CMD="get --partial"
35[ -z "$EDARCS_UPDATE_CMD" ] && EDARCS_UPDATE_CMD="pull" 35[ -z "$EDARCS_UPDATE_CMD" ] && EDARCS_UPDATE_CMD="pull"
36 36
37# options to pass to both the "get" and "update" commands 37# options to pass to both the "get" and "update" commands
38[ -z "$EDARCS_OPTIONS" ] && EDARCS_OPTIONS="--set-scripts-executable" 38[ -z "$EDARCS_OPTIONS" ] && EDARCS_OPTIONS="--set-scripts-executable"
39 39
44[ -z "$EDARCS_REPOSITORY" ] && EDARCS_REPOSITORY="" 44[ -z "$EDARCS_REPOSITORY" ] && EDARCS_REPOSITORY=""
45 45
46# The local directory to store the repository (useful to ensure a 46# The local directory to store the repository (useful to ensure a
47# unique local name); relative to EDARCS_TOP_DIR 47# unique local name); relative to EDARCS_TOP_DIR
48[ -z "$EDARCS_LOCALREPO" ] && [ -n "$EDARCS_REPOSITORY" ] \ 48[ -z "$EDARCS_LOCALREPO" ] && [ -n "$EDARCS_REPOSITORY" ] \
49 && EDARCS_LOCALREPO="`basename $EDARCS_REPOSITORY`" 49 && EDARCS_LOCALREPO=${EDARCS_REPOSITORY%/} \
50 && EDARCS_LOCALREPO=${EDARCS_LOCALREPO##*/}
50 51
51# EDARCS_CLEAN: set this to something to get a clean copy when updating 52# EDARCS_CLEAN: set this to something to get a clean copy when updating
52# (removes the working directory, then uses $EDARCS_GET_CMD to 53# (removes the working directory, then uses $EDARCS_GET_CMD to
53# re-download it.) 54# re-download it.)
54 55

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

  ViewVC Help
Powered by ViewVC 1.1.20