]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix split_summary to allow hyphens in authors' names
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 16 Dec 2016 13:15:33 +0000 (14:15 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 16 Dec 2016 13:39:26 +0000 (14:39 +0100)
doc/news/changes/split_summary.sh

index cad05456e9e987bbb974ebc353567f31bd12b02a..47c79976fd51498ef8d8fca0ef4f926aa18e9fb1 100755 (executable)
@@ -42,7 +42,7 @@ for f in xx*; do
   if [[ -s $f ]] ; then
     cat "$f" > tmp
     DATE=$(sed -n -r 's/^.*([0-9]{4})\/([0-1][0-9])\/([0-3][0-9]).*$/\1\2\3/p' "$f")
-    TMP=$(tail "$f" | sed -n -r 's/.*\(([A-Za-z0-9, ]*).*[0-9]{4}\/[0-1][0-9]\/([0-3][0-9])\).*/\1/p')
+    TMP=$(tail "$f" | sed -n -r 's/.*\(([-.A-Za-z0-9, ]*).*[0-9]{4}\/[0-1][0-9]\/([0-3][0-9])\).*/\1/p')
     NAME=$(echo "${TMP}" | sed -r 's/[ ,]+//g')
     OLDNAME=${NAME}
     COUNTER=0

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.