summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-07-15 09:19:57 +0000
committerseb <seb@pkgsrc.org>2002-07-15 09:19:57 +0000
commit880e0ea583ddb96cd78ae60473223fe054edb878 (patch)
tree064407947f0d33996cce93e3156517f9a1df984e /pkgtools
parent13ee285cab727b332656474b82ac20067a1bcd73 (diff)
downloadpkgsrc-880e0ea583ddb96cd78ae60473223fe054edb878.tar.gz
Pkgcvsupdate is too buggy, so remove it.
If people are interested in beta testing a replacement, contact me <seb@netbsd.org>.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkgcvsupdate/DESCR3
-rw-r--r--pkgtools/pkgcvsupdate/Makefile50
-rw-r--r--pkgtools/pkgcvsupdate/PLIST4
-rw-r--r--pkgtools/pkgcvsupdate/files/pkgcvsupdate.170
-rwxr-xr-xpkgtools/pkgcvsupdate/files/pkgcvsupdate.sh161
5 files changed, 0 insertions, 288 deletions
diff --git a/pkgtools/pkgcvsupdate/DESCR b/pkgtools/pkgcvsupdate/DESCR
deleted file mode 100644
index d0994119b39..00000000000
--- a/pkgtools/pkgcvsupdate/DESCR
+++ /dev/null
@@ -1,3 +0,0 @@
-Pkgcvsupdate is a tool to ease updating package source files from CVS.
-It can update a single package and its dependencies or a whole category of
-packages and their dependencies.
diff --git a/pkgtools/pkgcvsupdate/Makefile b/pkgtools/pkgcvsupdate/Makefile
deleted file mode 100644
index f5d47d5b7ab..00000000000
--- a/pkgtools/pkgcvsupdate/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2002/02/11 12:47:17 seb Exp $
-
-DISTNAME= pkgcvsupdate-0.3
-CATEGORIES= pkgtools devel
-MASTER_SITES= # empty
-DISTFILES= # empty
-
-MAINTAINER= seb@netbsd.org
-HOMEPAGE= ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt
-COMMENT= Tool to ease updating package source files from CVS
-
-EXTRACT_ONLY= # empty
-WRKSRC= ${WRKDIR}
-NO_CHECKSUM= yes
-NO_PATCH= yes
-NO_CONFIGURE= yes
-
-BROKEN= "This version of pkgcvsupdate does not work in some situations, wait for a new one"
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "SunOS"
-BUILD_DEPENDS+= groff-[0-9]*:../../textproc/groff
-NROFF= gnroff
-DIFF?= gdiff
-.else
-NROFF= nroff
-DIFF?= diff
-.endif
-
-do-build:
- ${SED} \
- -e 's|@AWK@|${AWK}|g' \
- -e 's|@BASENAME@|${BASENAME}|g' \
- -e 's|@DIRNAME@|${DIRNAME}|g' \
- -e 's|@GREP@|${GREP}|g' \
- -e 's|@LS@|${LS}|g' \
- -e 's|@MAKE@|${MAKE}|g' \
- -e 's|@SED@|${SED}|g' \
- -e 's|@TEST@|${TEST}|g' \
- < ${FILESDIR}/pkgcvsupdate.sh \
- > ${WRKSRC}/pkgcvsupdate
- ${NROFF} -mandoc ${FILESDIR}/pkgcvsupdate.1 >${WRKSRC}/pkgcvsupdate.0
-
-do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/pkgcvsupdate ${DESTDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/pkgcvsupdate.0 ${DESTDIR}${PREFIX}/man/cat1
- ${INSTALL_MAN} ${FILESDIR}/pkgcvsupdate.1 ${DESTDIR}${PREFIX}/man/man1
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/pkgtools/pkgcvsupdate/PLIST b/pkgtools/pkgcvsupdate/PLIST
deleted file mode 100644
index 41e89046521..00000000000
--- a/pkgtools/pkgcvsupdate/PLIST
+++ /dev/null
@@ -1,4 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2001/11/29 14:13:27 seb Exp $
-bin/pkgcvsupdate
-man/cat1/pkgcvsupdate.0
-man/man1/pkgcvsupdate.1
diff --git a/pkgtools/pkgcvsupdate/files/pkgcvsupdate.1 b/pkgtools/pkgcvsupdate/files/pkgcvsupdate.1
deleted file mode 100644
index a75864ff05b..00000000000
--- a/pkgtools/pkgcvsupdate/files/pkgcvsupdate.1
+++ /dev/null
@@ -1,70 +0,0 @@
-.\" $NetBSD: pkgcvsupdate.1,v 1.3 2002/01/07 12:39:25 seb Exp $
-.\"
-.\" Copyright (c) 2001 Stoned Elipot. All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by Stoned Elipot
-.\" for the NetBSD Project
-.\" 4. The name of the author may not be used to endorse or promote products
-.\" derived from this software without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.Dd November 19, 2001
-.Dt PKGCVSUPDATE 1
-.Os
-.Sh NAME
-.Nm pkgcvsupdate
-.Nd run CVS to update package sources in pkgsrc
-.Sh SYNOPSIS
-.Nm
-.Ar arguments
-.Sh DESCRIPTION
-The
-.Nm
-utility should be run from a package's main directory, a package category
-directory or the top-level pkgsrc directory. It first updates the pkgsrc
-infrastructure in
-.Pa ${PKGSRCDIR}/mk ,
-then the package's files and recursively all the packages' files it
-depend. When run from the top-level pkgsrc directory it run a separate CVS
-update for each category directory, this is believed to be faster than
-a single CVS invocation.
-.Pp
-Any arguments of
-.Nm
-are passed down to the CVS's update command.
-.Sh ENVIRONMENT VARIABLES
-.Bl -tag -width CVS_OPTIONS
-.It Ev CVS_OPTIONS
-Specify options to pass to cvs.
-.El
-.Sh SEE ALSO
-.Xr cvs 1 ,
-.Pa ${PKGSRCDIR}/Packages.txt
-and
-.Rs
-.%T "Documentation on the NetBSD Package System"
-.Re
-.Sh AUTHORS
-The pkgcvsupdate utility was written by
-.An Stoned Elipot Aq seb@netbsd.org .
diff --git a/pkgtools/pkgcvsupdate/files/pkgcvsupdate.sh b/pkgtools/pkgcvsupdate/files/pkgcvsupdate.sh
deleted file mode 100755
index 81aeac63c49..00000000000
--- a/pkgtools/pkgcvsupdate/files/pkgcvsupdate.sh
+++ /dev/null
@@ -1,161 +0,0 @@
-#! /bin/sh -
-# $NetBSD: pkgcvsupdate.sh,v 1.3 2002/01/07 12:39:25 seb Exp $
-
-AWK=@AWK@
-BASENAME=@BASENAME@
-DIRNAME=@DIRNAME@
-GREP=@GREP@
-LS=@LS@
-MAKE=@MAKE@
-SED=@SED@
-TEST=@TEST@
-
-cvs_cmd_args="$@"
-cwd=`pwd`
-dirs_updated=":"
-
-# low-level cvs update
-cvs_update()
-{
-_cwd=`pwd`
-if $TEST "x$1" = x. ; then
- echo "==> $_cwd"
-else
- echo "==> $_cwd/$1"
-fi
-cvs ${CVS_OPTIONS} update $cvs_cmd_args $1 || return 1
-}
-
-# update a directory tree
-cvs_update_dir()
-{
-_cwd=`pwd`
-case $dirs_updated in
- *:$_cwd:*) return 0;; # already updated
-esac
-cvs_update . || return 1
-dirs_updated="$dirs_updated$_cwd:"
-}
-
-# get the file included in ./Makefile
-get_make_included_files()
-{
-$GREP '^\.include' Makefile | \
-$AWK '$2 !~ /mk\//{ gsub(/["<>]/, "", $2); print $2 }' || exit 1
-}
-
-# get the "make sub-directory"
-get_subdirs()
-{
-# update local files first
-_oldcvs_cmd_args="$cvs_cmd_args"
-cvs_cmd_args="-l $cvs_cmd_args"
-cvs_update . || return 1
-cvs_cmd_args="$oldcvs_cmd_args"
-subdirs=`$MAKE -V SUBDIR`
-if $TEST $? -ne 0 || $TEST x"$subdirs" = x ; then
- # perhaps we don't have the -V flags to make (pre NetBSD 1.3
- # make ?)
- # XXX FIXME: we could miss a new directory here
- subdirs=""
- for _f in * ; do
- if $TEST -f $_f/Makefile ; then
- subdirs="$subdirs $_f"
- fi
- done
-fi
-}
-
-# update a list of package directories and their dependencies
-recursive_cvs_update_pkgdir()
-{
-_dirs_toupdate="$*"
-while true ; do
- # get the next package directory to update
- set blah $_dirs_toupdate
- shift
- _dir=$1
- if $TEST x"$_dir" = x ; then
- break # all done
- fi
- shift
- _dirs_toupdate="$*"
- # cd into it and update...
- if $TEST -d $_dir ; then
- cd $_dir || exit 1
- cvs_update_dir
- else
- # ...the directory does not exist, that would be a brand new
- # package we try to check it out instead
- cd `$DIRNAME $_dir` || exit 1
- cvs ${CVS_OPTIONS} checkout $cvs_cmd_args `$BASENAME $_dir` || exit 1
- cd $_dir || exit 1
- fi
- _cwd=`pwd`
- # get the dependencies...
- _depends=`$MAKE show-depends-dirs`
- if $TEST $? -ne 0; then
- # ...it failed try to see if it's because included Makefile
- # fragments are missing and queue up the packages providing
- # them
- _included_files=`get_make_included_files`
- for _f in $_included_files ; do
- case x$_f in
- x../*)
- _dirs_toupdate="$_cwd/`$DIRNAME $_f` $_dirs_toupdate";;
- esac
- done
- # and we would like to visit again the current package
- # directory in the end
- dirs_updated=`echo $dirs_updated | $SED -e "s,:$_cwd:,:,"`
- _dirs_toupdate="$_dirs_toupdate $_cwd"
- else
- # queue up the dependencies of the current package
- for _p in $_depends ; do
- _dirs_toupdate="$_cwd/../../$_p $_dirs_toupdate"
- done
- fi
-done
-}
-
-if $TEST -f ../../Packages.txt && $TEST -d ../../pkgtools/digest ; then
- # we are in a package directory...
-
- # update mk
- cd ../../mk && cvs_update_dir && cd $cwd || exit 1
-
- # update the current package directory and needed dependencies
- recursive_cvs_update_pkgdir $cwd
-
-elif $TEST -f Makefile && \
- ( $TEST -f ../Packages.txt || $TEST -f Packages.txt) ; then
- # we are in category directory or in the top-level pkgsrc directory
-
- # update mk
- $TEST -d ../mk && cd ../mk || cd mk || exit 1
- cvs_update_dir && cd $cwd || exit 1
-
- # get the packages in this category or all the categories
- get_subdirs
- if $TEST $? -ne 0 || $TEST x"$subdirs" = x ; then
- echo "could not get the sub-directories in $cwd" 1>&2
- exit 1
- fi
-
- if $TEST -f ../Packages.txt ; then
- # update the category packages' directories and their
- # dependencies
- _dirs=""
- for _p in $subdirs ; do
- _dirs="$_dirs $cwd/$_p"
- done
- recursive_cvs_update_pkgdir $_dirs
- else
- for _p in $subdirs ; do
- cvs_update $_p || exit 1
- done
- fi
-else
- echo "Not in a package, category or toplevel directory" 1>&2
- exit 1
-fi