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 39
|
#!/bin/sh
############################################################################
moduledir=${0%/[^/]*}
module=${moduledir##*/}
cvs2cl=/home/sigma/larsa/code/cvs/src/cvs2cl/cvs2cl.pl
headerfile=/tmp/$module.header
cd $moduledir
############################################################################
cat > $headerfile <<ENDOFHEADER
ChangeLog
=========
This is the ChangeLog file for the $module module. This file is automatically
generated every night. Entries are in reversed chronological order.
See http://www.red-bean.com/~kfogel/cvs2cl.shtml for information about the
cvs2cl script used to generate this file.
============================================================================
ENDOFHEADER
############################################################################
cvs update -dP
cvs log | $cvs2cl --stdin --header $headerfile --separate-header --prune \
--ignore 'ChangeLog$' \
--ignore '(Makefile\.in|configure|aclocal\.m4|config\.sub|config\.guess)$' \
--ignore '(ltconfig|ltmain\.sh|missing|mkinstalldirs|stamp-h.*|install-sh)$' \
--ignore 'config\.h\.in$' \
--ignore 'conf-macros'
rm ChangeLog.bak $headerfile
cvs commit -m "Automatic ChangeLog generation" ChangeLog
|