From 727c7a1b0f3abae298ad6e313cd517b83fe1f37d Mon Sep 17 00:00:00 2001 From: Paul Sherwood Date: Sun, 26 May 2013 14:18:54 +0000 Subject: add a first-pass script to checkout chunks, count lines in them --- counter.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 counter.sh 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 + -- cgit v1.2.1