46 lines
1.3 KiB
Bash
Executable File
46 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
||
|
||
f=~/Desktop/daily
|
||
tmp="$(mktemp)"
|
||
final="$(mktemp)"
|
||
|
||
sed \
|
||
-e 's/ / /g' \
|
||
-e 's/^adj */\n\n**Cet après-midi**/' \
|
||
-e 's/^aprem */\n\n**Cet après-midi**/' \
|
||
-e 's/^matin */\n\n**Ce matin**/' \
|
||
-e 's/^hier */\n\n**Hier après-midi**/' \
|
||
-e 's/\( \|^\)maj\( \|$\)/mise à jour/' \
|
||
-e 's/^diffic.*/\n\n**Difficultés**\n/i' \
|
||
-e 's/^ *information.*/# Points divers/i' \
|
||
-e 's/^point.* diver.*/# Points divers/i' \
|
||
-e 's/^point.* g.n.raux.*/# Points divers/i' \
|
||
-e 's/^info.* g.n.ra.*/# Points divers/i' \
|
||
-e 's/^difficult.s.*/# Difficultés/i' \
|
||
-e 's/^message.* g.n.raux.*/# Points divers/i' \
|
||
-e 's/^tickets$/dbm : tickets/g' \
|
||
-e 's/^\([^-*#: ]\+\)$/# @\U\1/' \
|
||
-e 's/^\([^-*#@: ][^*#@:]\+[^: ]\) *: */- \U\1 : /' \
|
||
-e 's/^\([^-*#@:]\+\)$/- \1/' \
|
||
-e 's/ \+/ /g' \
|
||
-e 's/dde/demande/g' \
|
||
-e 's/pb/problème/g' \
|
||
"$f" > "$tmp"
|
||
#sed -i -e 's/^\([^-*#\s ]\)/# @\U\1/' "$tmp"
|
||
|
||
echo "
|
||
**Daily Stand-Up Meeting du $(date '+%d %h %Y')**
|
||
- Où : https://bbb.dbm.tech/rooms/05n-3ax-qwg-9n8/join
|
||
- Participants : $(grep -o '@.*' "$tmp" | tr '\n' ',' | sed 's/,$/\n/')
|
||
- Quand : $(date '+%Y/%m/%d') 12h05
|
||
- Durée : 00:15 '(+0mn)
|
||
- Scribe : Adrian
|
||
- Relecteur :
|
||
" > "$final"
|
||
|
||
cat "$tmp" >> "$final"
|
||
|
||
# Display
|
||
cat "$final"
|
||
rm "$tmp" "$final"
|