#!/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/ #