git-migration: pld-git.sh - allow getting cvs dirs from local packages/
glen
glen at pld-linux.org
Thu Feb 10 06:04:06 CET 2011
Author: glen Date: Thu Feb 10 05:04:06 2011 GMT
Module: git-migration Tag: HEAD
---- Log message:
- allow getting cvs dirs from local packages/
---- Files affected:
git-migration:
pld-git.sh (1.17 -> 1.18)
---- Diffs:
================================================================
Index: git-migration/pld-git.sh
diff -u git-migration/pld-git.sh:1.17 git-migration/pld-git.sh:1.18
--- git-migration/pld-git.sh:1.17 Wed Feb 9 23:21:28 2011
+++ git-migration/pld-git.sh Thu Feb 10 06:04:01 2011
@@ -36,8 +36,18 @@
# output: $t/cvs.dirs = list of pkgs on cvs
cvs_dirs() {
set -$d
- [ -s cvs.raw ] || cvs -d $CVSROOT -Q ls -e packages > cvs.raw 2>/dev/null
- [ -s cvs.dirs ] || awk -F/ '$1 == "D" { print $2 } ' cvs.raw > cvs.dirs
+
+ if [ -d "$CVSROOT" ]; then
+ local pkg
+ for pkg in $CVSROOT/packages/*/; do
+ pkg=${pkg%/}
+ pkg=${pkg##*/}
+ echo $pkg
+ done > cvs.dirs
+ else
+ [ -s cvs.raw ] || cvs -d $CVSROOT -Q ls -e packages > cvs.raw 2>/dev/null
+ [ -s cvs.dirs ] || awk -F/ '$1 == "D" { print $2 } ' cvs.raw > cvs.dirs
+ fi
}
# expect cvs.pkgs, can be created by rsync.log of looking packages/ in cvs
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/pld-git.sh?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list