diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2013-05-26 14:18:54 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2013-05-26 14:21:42 +0000 |
commit | 727c7a1b0f3abae298ad6e313cd517b83fe1f37d (patch) | |
tree | c3d6c0ec84816f8c46781728b22ab05c26312563 | |
parent | 5260be4442f3ae758732bdf388b16c1602647f52 (diff) | |
download | morphs-727c7a1b0f3abae298ad6e313cd517b83fe1f37d.tar.gz |
add a first-pass script to checkout chunks, count lines in them
-rw-r--r-- | counter.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/counter.sh b/counter.sh new file mode 100644 index 0000000..016dd5b --- /dev/null +++ b/counter.sh @@ -0,0 +1,19 @@ +workspace=$PWD/../.. +system=$1 + +strata=`cat $system.morph | grep '\"morph\"' | grep -o \"[-a-z0-9]*\", | grep -o '[-a-z0-9]*'` +for stratum in $strata +do + chunks=`cat $stratum.morph | grep '\"name\"' | grep -o \"[-a-z0-9]*\", | grep -o '[-a-z0-9]*'` + for chunk in $chunks + do + if [ $chunk != $stratum ] && [ $stratum != "build-essential" ] ; then + morph edit --no-git-update $system $stratum $chunk + cd $workspace/upstream:$chunk + echo $PWD `git ls-files | xargs cat | wc -l 2>/dev/null` +# git ls-files | xargs cat | wc -l ; + cd $workspace/baserock:baserock/morphs + fi; + done +done + |