r77774 - in /scripts/qa: commoncheck maintainercheck svncruftcheck
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat Jul 23 16:41:50 UTC 2011
Author: gregoa
Date: Sat Jul 23 16:41:48 2011
New Revision: 77774
URL: http://svn.debian.org/wsvn/?sc=1&rev=77774
Log:
support svn and git
Modified:
scripts/qa/commoncheck
scripts/qa/maintainercheck
scripts/qa/svncruftcheck
Modified: scripts/qa/commoncheck
URL: http://svn.debian.org/wsvn/scripts/qa/commoncheck?rev=77774&op=diff
==============================================================================
--- scripts/qa/commoncheck (original)
+++ scripts/qa/commoncheck Sat Jul 23 16:41:48 2011
@@ -1,5 +1,6 @@
# defaults
-REPO=svn://svn.debian.org/svn/pkg-perl
+SVNREPO=svn://svn.debian.org/svn/pkg-perl
+GITREPO=git://git.debian.org/git/pkg-perl
MIRROR=ftp://ftp.debian.org
CPAN=ftp://cpan.org/pub/CPAN
@@ -11,7 +12,8 @@
CPAN=ftp://gd.tuwien.ac.at/pub/CPAN
;;
alioth|wagner|vasks)
- REPO=file:///svn/pkg-perl
+ SVNREPO=file:///svn/pkg-perl
+ GITREPO=/git/pkg-perl
MIRROR=ftp://ftp.nl.debian.org
CPAN=ftp://cpan.wanadoo.nl/pub/CPAN
;;
Modified: scripts/qa/maintainercheck
URL: http://svn.debian.org/wsvn/scripts/qa/maintainercheck?rev=77774&op=diff
==============================================================================
--- scripts/qa/maintainercheck (original)
+++ scripts/qa/maintainercheck Sat Jul 23 16:41:48 2011
@@ -1,16 +1,21 @@
#!/bin/sh
-# Copyright gregor herrmann <gregor+debian at comodo.priv.at>, 2007, 2008
+# Copyright gregor herrmann <gregor+debian at comodo.priv.at>, 2007, 2008, 2011
# Released under the terms of the GNU GPL 2
. $(dirname $0)/commoncheck
DIR=$(mktemp -d)
-for P in $(svn ls $REPO/trunk/); do
- P=${P%/}
+for P in $(svn ls $SVNREPO/trunk/ ; ls -1d $GITREPO/packages/*.git 2>/dev/null ); do
+ P=${P%*/}
+ P=${P##*/}
CONTROL="$DIR/$P.control"
- svn export $REPO/trunk/$P/debian/control $CONTROL > /dev/null
+ if echo "$P" | grep -q \\.git ; then
+ GIT_DIR=$GITREPO/packages/$P git cat-file blob master:debian/control > $CONTROL
+ else
+ svn export $SVNREPO/trunk/$P/debian/control $CONTROL > /dev/null
+ fi
if ! grep "Maintainer: Debian Perl Group <pkg-perl-maintainers at lists\.alioth\.debian\.org>" $CONTROL > /dev/null ; then
echo $P
egrep "(Maintainer|Uploaders)" $CONTROL | sort
Modified: scripts/qa/svncruftcheck
URL: http://svn.debian.org/wsvn/scripts/qa/svncruftcheck?rev=77774&op=diff
==============================================================================
--- scripts/qa/svncruftcheck (original)
+++ scripts/qa/svncruftcheck Sat Jul 23 16:41:48 2011
@@ -3,22 +3,22 @@
# Copyright gregor herrmann <gregor+debian at comodo.priv.at>, 2007, 2008
# Released under the terms of the GNU GPL 2
-. commoncheck
+. $(dirname $0)/commoncheck
-echo "CHECK: $REPO/branches/upstream"
-for p in $(svn ls $REPO/branches/upstream); do
+echo "CHECK: $SVNREPO/branches/upstream"
+for p in $(svn ls $SVNREPO/branches/upstream); do
p=${p%/}
echo " $p"
- if ! svn ls $REPO/trunk/$p >/dev/null 2>&1 ; then
- echo "$p is in $REPO/branches/upstream but not in $REPO/trunk"
+ if ! svn ls $SVNREPO/trunk/$p >/dev/null 2>&1 ; then
+ echo "$p is in $SVNREPO/branches/upstream but not in $SVNREPO/trunk"
fi
done
-echo "CHECK: $REPO/tags"
-for p in $(svn ls $REPO/tags); do
+echo "CHECK: $SVNREPO/tags"
+for p in $(svn ls $SVNREPO/tags); do
p=${p%/}
echo " $p"
- if ! svn ls $REPO/trunk/$p >/dev/null 2>&1 ; then
- echo "$p is in $REPO/tags but not in $REPO/trunk"
+ if ! svn ls $SVNREPO/trunk/$p >/dev/null 2>&1 ; then
+ echo "$p is in $SVNREPO/tags but not in $SVNREPO/trunk"
fi
done
More information about the Pkg-perl-cvs-commits
mailing list