]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- tag by 100 file chunks
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 22 Sep 2007 10:16:36 +0000 (10:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.519

builder.sh

index 94a7de9be6d66f6fb1de0f675c548e2837cb00f7..a5d1764cd6f154a3b910109bb1321f09654649db 100644 (file)
@@ -1171,8 +1171,13 @@ tag_files()
                fi
                if [ -n "$TAG" ]; then
                        update_shell_title "tag sources: $TAG"
-                       printf "Tagging %d files\n" $(echo $tag_files | wc -w)
-                       cvs $OPTIONS $TAG $tag_files || exit
+
+                       while [ "$tag_files" ]; do
+                               local chunk=$(echo $tag_files | tr ' ' '\n' | head -n 100)
+                               printf "Tagging %d files\n" $(echo $chunk | wc -w)
+                               cvs $OPTIONS $TAG $chunk || exit
+                               tag_files=$(echo $tag_files | tr ' ' '\n' | tail +101)
+                       done
                fi
        fi
 
This page took 0.047727 seconds and 4 git commands to generate.