Skip to content

Commit

Permalink
various tweaks in the tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Mar 2, 2019
1 parent 5d75cf6 commit 78aa251
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions v2/util/gen-ann-email
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

infile=$1
name=$2

if [ -z "$infile" ]; then
echo "No .md input file specified." > /dev/stderr
exit 1
fi

if [ ! -f "$infile" ]; then
echo "Input file $infile not found." > /dev/stderr
exit 1
fi

if [ -z "$name" ]; then
name=Yichun
fi

outfile=email.md
printf "Hi folks!\n\n" > $outfile || exit 1
cat $infile >> $outfile || exit 1
printf "\nBest regards,\n$name\n" >> $outfile || exit 1

exec md2pod.pl $outfile | pod2text -u -i 1 -w 69 --nourls -
4 changes: 2 additions & 2 deletions v2/util/gen-plain-changes
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ perl -ne 'exit if /^See \[ChangeLog \d/;
next;
}
print;
' $1 > /tmp/changes.txt || exit 1
exec md2pod.pl /tmp/changes.txt | pod2text -u -i 1 -w 69 --nourls -
' $1 > /tmp/changes.md || exit 1
exec md2pod.pl /tmp/changes.md | pod2text -u -i 1 -w 69 --nourls -

0 comments on commit 78aa251

Please sign in to comment.