]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Output results to the console instead.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 9 Dec 2016 23:45:13 +0000 (16:45 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 12 Dec 2016 03:03:22 +0000 (20:03 -0700)
doc/news/changes/create_changes_h.sh

index a68dbfd79b6b87e9cb11fd891056444d0b0efd4b..4f1c30df8ae21b7e439c4adea6b5a4f0a7cc3ff9 100755 (executable)
@@ -20,7 +20,8 @@
 #
 # The script needs to be executed as 
 #   ./create_changes_h.sh
-# from ./doc/news/changes.
+# from ./doc/news/changes. It simply outputs its results to the console,
+# from where the text can be captured to a file.
 
 
 
@@ -29,36 +30,34 @@ if test ! -d incompatibilities -o ! -d major -o ! -d minor ; then
   exit 1
 fi
 
-OUTPUT="../changes.h.new"
 
 function process_directory
 {
-  echo "<ol>" >> ${OUTPUT}
+  echo "<ol>"
   # process all entries in the right order
   ARRAY=($(ls "$1" | sort -r))
   for f in "${ARRAY[@]}"; do
-    echo "" >> ${OUTPUT}
-    echo -n " <li>" >> ${OUTPUT}
+    echo ""
+    echo -n " <li>"
     # indent lines by one blank space
-    sed 's/^[ ]*/ /' "$1"/"$f" >> ${OUTPUT}
-    echo " </li>" >> ${OUTPUT}
+    sed 's/^[ ]*/ /' "$1"/"$f"
+    echo " </li>"
   done
-  echo "" >> ${OUTPUT}
-  echo "</ol>" >> ${OUTPUT}
+  echo ""
+  echo "</ol>"
 }
 
-cat header > ${OUTPUT}
 
-echo INCOMPATIBILITIES
-cat header_incompatibilities >> ${OUTPUT}
+
+cat header
+
+cat header_incompatibilities
 process_directory incompatibilities
 
-echo GENERAL
-cat header_major >> ${OUTPUT}
+cat header_major
 process_directory major
 
-echo SPECIFIC
-cat header_minor >> ${OUTPUT}
+cat header_minor
 process_directory minor
 
-cat footer >> ${OUTPUT}
+cat footer

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.