summaryrefslogtreecommitdiffstats
path: root/shell/smsummary.sh
diff options
context:
space:
mode:
authorRich Bennett <rb2745@att.com>2018-11-30 06:49:30 -0500
committerRich Bennett <rb2745@att.com>2018-11-30 07:14:07 -0500
commit7fbaf50c9b84b0ca5754ce754d9e8c58f0adfaf3 (patch)
tree12d0f34cd9e4a94021d88474a08cd4983453f72c /shell/smsummary.sh
parent62e237b2a257b3d993ce5993e399f88004895a80 (diff)
Apply casablanca improvements to smsummary
Use simpler git submodule status summary Remove automatic use in master branch Change-Id: Ib2e300bc2eabd3a6aed8fbd6805234f5d6a4ee7c Issue-ID: DOC-332 Signed-off-by: Rich Bennett <rb2745@att.com>
Diffstat (limited to 'shell/smsummary.sh')
-rw-r--r--shell/smsummary.sh10
1 files changed, 2 insertions, 8 deletions
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