X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=shell%2Fsmsummary.sh;h=98c282f0eb9fe1ea08fa6cfe6f27c457992991ae;hb=d081cc7ba283c1c316607f1b0c2a52b8c4457d6a;hp=a4bd1d3fc5dbfc172729748dd7b5b1815087b388;hpb=169c1343d51f09f3501312440beaece5253d4c94;p=doc.git diff --git a/shell/smsummary.sh b/shell/smsummary.sh index a4bd1d3fc..98c282f0e 100644 --- a/shell/smsummary.sh +++ b/shell/smsummary.sh @@ -1,3 +1,4 @@ +#!/bin/bash # Copyright (c) 2018 Open Network Automation Platform and contributors # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,11 +17,4 @@ # Usage: sh smsummary.sh output_file # -echo "************************************************************************************" > $1 -echo "* Submodule branches used to build this version of the documentation. *" >> $1 -echo "************************************************************************************" >> $1 - -git submodule foreach git for-each-ref \ - --format='%(committerdate:iso8601) %(objectname) %(HEAD) %(refname) %(subject)' \ - --sort -committerdate refs/heads/ | \ - sed -e 's:^: :' -e 's: Entering .docs/submodules/::' -e 's:.git.$::' -e 's:refs/heads/::' >> $1 +git submodule status | sed -e 's:^ ::' -e 's: :,:' -e 's: :,:' -e 's:[()]::g' -e 's:\.git::' > $1