You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/01/07 11:59:56 UTC
[whimsy] branch master updated: Simplify as source files are in SVN
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 763527f Simplify as source files are in SVN
763527f is described below
commit 763527ff9b70d9cf1674094bb0d89440dcfd0b72
Author: Sebb <se...@apache.org>
AuthorDate: Mon Jan 7 11:59:51 2019 +0000
Simplify as source files are in SVN
---
tools/toccomments.sh | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/tools/toccomments.sh b/tools/toccomments.sh
index 80f1d2b..021f1cb 100755
--- a/tools/toccomments.sh
+++ b/tools/toccomments.sh
@@ -1,18 +1,9 @@
#!/usr/bin/env bash
# Fix incorrectly wrapped comments in Incubator ToC section
+# Intended for use on archived agendas and published minutes.
# Look for Comments: preceeded by non-space
-ruby -p -i.orig -e 'gsub(/(\S)\s+(Comments:)/,"\\1\n \\2")' "$@"
-for i in "$@"
-do
- # if the files are the same, drop the unchanged output
- if cmp -s $i $i.orig
- then
- echo "$i has not changed"
- rm $i.orig
- else
- echo "$i has changed"
-# ls -l $i*
- fi
-done
+ruby -p -i -e 'gsub(/(\S)\s+(Comments:)/,"\\1\n \\2")' "$@"
+# no need to save original files as tool is intended for use with files in SVN/Git
+echo "Done; the updated files can be diffed/checked in as required"
\ No newline at end of file