[Pkg-ocaml-maint-commits] r6198 - /trunk/projects/git-guide/d-o-m-mrconfig.sh
dogguy-guest at users.alioth.debian.org
dogguy-guest at users.alioth.debian.org
Wed Feb 18 23:14:46 UTC 2009
Author: dogguy-guest
Date: Wed Feb 18 23:14:46 2009
New Revision: 6198
URL: http://svn.debian.org/wsvn/?sc=1&rev=6198
Log:
Adding 'check' action to check for git migrations
Modified:
trunk/projects/git-guide/d-o-m-mrconfig.sh
Modified: trunk/projects/git-guide/d-o-m-mrconfig.sh
URL: http://svn.debian.org/wsvn/trunk/projects/git-guide/d-o-m-mrconfig.sh?rev=6198&op=diff
==============================================================================
--- trunk/projects/git-guide/d-o-m-mrconfig.sh (original)
+++ trunk/projects/git-guide/d-o-m-mrconfig.sh Wed Feb 18 23:14:46 2009
@@ -46,7 +46,15 @@
git branch --track pristine-tar remotes/origin/pristine-tar
}
svn_checkout () {
- svn co $SVN_REPODIR/\$1
+ svn co $SVN_REPODIR/\$1
+ }
+ migration_check () {
+ svn update
+ if [ -f \"trunk/README\" ] && [[ \"\`cat trunk/README\`\" =~ \"This package has moved\" ]]; then
+ cd ..
+ rm -rf \${1//packages\//}
+ git_checkout \${1//packages\//}
+ fi
}
"
@@ -61,6 +69,7 @@
for i in $SVN_REMAINING_PKGS; do
output "[packages/$i]
checkout = svn_checkout packages/$i
+check = migration_check packages/$i
"
done
@@ -83,4 +92,4 @@
fi
# Finish
-msg "all done, enjoy: mr -c $OUTPUT [checkout,update,...]"
+msg "all done, enjoy: mr -c $OUTPUT [checkout,update,check,...]"
More information about the Pkg-ocaml-maint-commits
mailing list