chiark / gitweb /
cvs-list-tags: New script to (try to) list all tags in a CVS repository.
[bin.git] / cvs-list-tags
diff --git a/cvs-list-tags b/cvs-list-tags
new file mode 100755 (executable)
index 0000000..74d8507
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/sh
+# List all the tags available for all files in a CVS working copy.
+# This is an ugly hack. It should more or less work, though.
+cvs status -vR 2>/dev/null | \
+       grep '(revision:' | \
+       sed 's/[[:space:]]*\([^[:space:]]*\).*/\1/' | \
+       sort -u