1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/bin/sh
# This script is free software; you can distribute it and/or modify it
# under the terms of the GNU GPL. See the file COPYING.
# based upon cabot's and caspar's setversion
# kinjarwanda. docbook doesn't allow raw utf-8 in .dbx
LANG=rw_RW
export LANG
version=`date +%Y%m%d`
day=`date +%e`
month=`date +%B`
year=`date +%Y`
# tweak for rw
date=`date '+%b %e %Y'`
bugreport='joostvb-systraq-20151105@mdcc.cx'
echo 'm4_define([ST_VERSION], ['$version'])' >VERSION.m4
# dates in documentation
echo $day >stamp.day
echo $month >stamp.month
echo $year >stamp.year
sed "s/@VERSION@/$version/;
s/@YEAR@/$year/;
s/@MONTH@/$month/;
s/@DAY@/$day/;
s/@DATE@/$date/;
s/@PACKAGE_BUGREPORT@/$bugreport/" man.ent.i >man.ent
# ./bootstrap installs man.ent in doc/ and man/
#<!ENTITY bugemail "@PACKAGE_BUGREPORT@">
|