aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'script.sh')
-rwxr-xr-xscript.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/script.sh b/script.sh
index 7104262..b0c29a6 100755
--- a/script.sh
+++ b/script.sh
@@ -8,9 +8,17 @@ mkdir git -p
./create-mailmap.py userinfo.xml > gentoo_mailmap.py || { echo "failed to create mailmap."; exit 1; }
# Prioritize the larger categories first; they typically will have
# the most revs, thus start them first.
-time { \
- find cvs-repo/gentoo-x86 -maxdepth 1 -mindepth 1 -printf '%P\n' | \
- xargs -n1 -I{} -- du -cs "cvs-repo/gentoo-x86/{}" | grep -v 'total$' | \
- sort -gr | awk '{print $2;}' | xargs -n1 basename | \
- xargs -n1 -P${proc_count} ./process_directory.sh
+f() {
+ time { \
+ find cvs-repo/gentoo-x86 -maxdepth 1 -mindepth 1 -printf '%P\n' | \
+ xargs -n1 -I{} -- du -cs "cvs-repo/gentoo-x86/{}" | grep -v 'total$' | \
+ sort -gr | awk '{print $2;}' | xargs -n1 basename | \
+ xargs -n1 -P${proc_count} -I{} ./process_directory.sh "{}" $1
+ }
}
+fast=false
+if [ "$1" == --full ]; then
+ f 300 300> >(time ./create-git.sh --fast)
+else
+ f
+fi