diff options
author | Dan McGee <dan@archlinux.org> | 2008-02-08 03:16:16 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-02-08 03:16:16 +0100 |
commit | bfc024eab3a1d26ba37620175be815cb2eb59606 (patch) | |
tree | 96c1c3d89b0e523364b6b000ef02105ebbd0923e /scripts/makepkg.sh.in | |
parent | 77c3cf9790472592902183354ea5481cffc01f58 (diff) | |
parent | 14ee1be1ef21e09a84f01dc9623e8513218709d4 (diff) | |
download | pacman-bfc024eab3a1d26ba37620175be815cb2eb59606.tar.gz pacman-bfc024eab3a1d26ba37620175be815cb2eb59606.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 68ad5978..cecda1d2 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -998,23 +998,30 @@ devel_check() { # This will only be used on the first call to makepkg; subsequent # calls to makepkg via fakeroot will explicitly pass the version # number to avoid having to determine the version number twice. + # Also do a brief check to make sure we have the VCS tool available. oldpkgver=$pkgver if [ ! -z ${_darcstrunk} ] && [ ! -z ${_darcsmod} ] ; then + [ $(type -p darcs) ] || return 0 msg "$(gettext "Determining latest darcs revision...")" newpkgver=$(date +%Y%m%d) elif [ ! -z ${_cvsroot} ] && [ ! -z ${_cvsmod} ] ; then + [ $(type -p cvs) ] || return 0 msg "$(gettext "Determining latest cvs revision...")" newpkgver=$(date +%Y%m%d) elif [ ! -z ${_gitroot} ] && [ ! -z ${_gitname} ] ; then + [ $(type -p git) ] || return 0 msg "$(gettext "Determining latest git revision...")" newpkgver=$(date +%Y%m%d) elif [ ! -z ${_svntrunk} ] && [ ! -z ${_svnmod} ] ; then + [ $(type -p svn) ] || return 0 msg "$(gettext "Determining latest svn revision...")" newpkgver=$(svn log $_svntrunk --limit 1 -q | sed -n 's/^r\([0-9]*\) .*$/\1/p') elif [ ! -z ${_bzrtrunk} ] && [ ! -z ${_bzrmod} ] ; then + [ $(type -p bzr) ] || return 0 msg "$(gettext "Determining latest bzr revision...")" newpkgver=$(bzr revno ${_bzrtrunk}) elif [ ! -z ${_hgroot} ] && [ ! -z ${_hgrepo} ] ; then + [ $(type -p hg) ] || return 0 msg "$(gettext "Determining latest hg revision...")" if [ -d ./src/$_hgrepo ] ; then cd ./src/$_hgrepo |