This adds CVS as a possible source in feeds.conf files. This patch
supports local CVS checkout of a package repo. Example:
src-cvs mypkgs design/sw/common/openwrt/package
Will execute:
cd feeds; cvs checkout -Pd mypkgs design/sw/common/openwrt/package
This patch also supports branch syntax:
src-cvs mypkgs design/sw/common/openwrt/package;GOLDEN
which will add "-r GOLDEN" to the checkout line.
Note that these checkouts (and update) require the use have a valid
$CVSROOT already set up in their environment.
Signed-off-by: Andrew Peebles <peeb...@cortina-systems.com>
diff -Naur old/scripts/feeds new/scripts/feeds
--- old/scripts/feeds 2011-02-04 15:59:09.000000000 -0800
+++ new/scripts/feeds 2011-02-22 17:31:07.000000000 -0800
@@ -106,6 +106,11 @@
'init' => "svn checkout '%s' '%s'",
'update' => "svn update",
'controldir' => ".svn"},
+ 'src-cvs' => {
+ 'init' => "(module='%s'; path='%s'; mkdir -p \$path;
bn=`basename \$path`; cd `dirname \$path`; cvs checkout -Pd \$bn \$module)",
+ 'init_branch' => "(branch='%s'; module='%s'; path='%s'; mkdir -p
\$path; bn=`basename \$path`; cd `dirname \$path`; cvs checkout -r\$branch -Pd \$bn
\$module)",
+ 'update' => "cvs update -Pd",
+ 'controldir' => "CVS"},
'src-cpy' => {
'init' => "cp -Rf '%s' '%s'",
'update' => ""},
@@ -283,6 +288,7 @@
my %install_method = (
'src-svn' => \&install_generic,
+ 'src-cvs' => \&install_generic,
'src-cpy' => \&install_generic,
'src-link' => \&install_generic,
'src-git' => \&install_generic,
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel