incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject [incubator] branch master updated: Add cat -s
Date Mon, 20 May 2019 11:48:46 GMT
This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator.git


The following commit(s) were added to refs/heads/master by this push:
     new c1456b4  Add cat -s
c1456b4 is described below

commit c1456b4a1efb0724ab8a4a6b2a4cd3ecc464b4af
Author: Bertrand Delacretaz <bdelacretaz@apache.org>
AuthorDate: Mon May 20 13:48:40 2019 +0200

    Add cat -s
---
 preprocess_content.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/preprocess_content.sh b/preprocess_content.sh
index 29965aa..3a7c48d 100755
--- a/preprocess_content.sh
+++ b/preprocess_content.sh
@@ -1,7 +1,10 @@
 #!/bin/bash
  
-echo "Preprocessing the Board report content" 
+IN=report.txt
+OUT=report-processed.txt
 
 # Use fold to wrap lines within 76 chars
+# cat -s to get single-space output
 # And sed to escape HTML characters
-fold -s -w 76 < report.txt | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g;
s/"/\&quot;/g; s/'"'"'/\&#39;/g' > report-processed.txt
\ No newline at end of file
+echo "Preprocessing the Board report content, $IN -> $OUT ..."
+fold -s -w 76 < $IN | cat -s | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g;
s/"/\&quot;/g; s/'"'"'/\&#39;/g' > $OUT
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message