summaryrefslogtreecommitdiffstats
path: root/tools/encap-util-count.sh
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-07-19 22:30:26 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-07-19 22:30:26 +0000
commitdc175a023bf6761d7a9015d83ea4678d60ebc3db (patch)
treed6bbe72eaf65e5f4fe6f668cc34262f79dd60dec /tools/encap-util-count.sh
parent2fbb9258d1bd069ff4ba07fd1765201da1afa669 (diff)
downloadbcfg2-dc175a023bf6761d7a9015d83ea4678d60ebc3db.tar.gz
bcfg2-dc175a023bf6761d7a9015d83ea4678d60ebc3db.tar.bz2
bcfg2-dc175a023bf6761d7a9015d83ea4678d60ebc3db.zip
Add tools for managing encaps
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3509 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools/encap-util-count.sh')
-rwxr-xr-xtools/encap-util-count.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/encap-util-count.sh b/tools/encap-util-count.sh
new file mode 100755
index 000000000..848a8d648
--- /dev/null
+++ b/tools/encap-util-count.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+# $Id$
+
+# This shows a count of encap packages per directory
+# Can be useful to make sure you have everything
+# built for all platforms. It assumes the directory
+# has a *.run file in it (from the bcfg2 encap build)
+
+for RUN in $(find . -type f | grep run$); do
+ DIR="$(dirname $RUN)"
+ printf "${DIR}: "
+ (cd $DIR && ls | wc -l)
+done
+
+exit 0