--- a/utils/md2man/md2man.sh 2020-03-02 08:33:26.468163145 -0800 --- b/utils/md2man/md2man.sh 2020-03-02 09:05:23.560324541 -0800 @@ -56,6 +56,7 @@ secondary_title=`sed -n 's/^secondary_title:\ *\(.*\)$/\1/p' $filename` dt="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)" +year="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)" # since genereted docs are not kept in the repo the output dir may not exist out_dir=`echo $outfile | sed 's/\(.*\)\/.*/\1/'` mkdir -p $out_dir @@ -64,7 +65,7 @@ pandoc -s -t man -o $outfile --template=$template \ -V title=$title -V section=$section \ -V date="$dt" -V version="$version" \ - -V year=$(date +"%Y") -V secondary_title="$secondary_title" | + -V year="$year" -V secondary_title="$secondary_title" | sed '/^\.IP/{ N /\n\.nf/{