Browse Source

man/fill_template: Use numeric year-month-date for manpage.

The month may be rendered for the locale of the build environment.

https://reproducible-builds.org/docs/locales/
pull/932/head
Vagrant Cascadian Nicholas D Steeves 2 years ago
parent
commit
00ae04adf8
No known key found for this signature in database GPG Key ID: 5A8830475F7D1061
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      man/fill_template

+ 2
- 2
man/fill_template View File

@@ -4,8 +4,8 @@ d=""

if [ "$2" == "True" ]; then
for i in *.0 ; do
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < ${i} > ${i%%0}1
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1
done
else
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < jackd.0 > jackd.1
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < jackd.0 > jackd.1
fi

Loading…
Cancel
Save