source: to-imperative/trunk/createlog @ 299

Last change on this file since 299 was 299, checked in by pooh, 18 years ago
  • First stage of CVS tree reorganization completed.
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 845 bytes
Line 
1#!/bin/sh
2
3logfile="ChangeLog"
4
5(
6
7dir=`dirname $0`
8cd ${dir}
9
10if [ -f changelog.date ] ; then
11  dateopt="-r -d \">`cat changelog.date`\""
12fi
13
14rcsscript=`mktemp /tmp/createlog.XXXXXX`
15
16uopt=
17if [ -f Developers ] ; then
18  uopt="`cat Developers | sed 's/^/-u "/g;s/$/\"/g'`"
19fi
20echo "#!/bin/sh" >${rcsscript}
21echo xargs rcs2log ${uopt} ${dateopt} >>${rcsscript}
22chmod +x ${rcsscript}
23
24(
25  for i in `find . -path "*CVS/Entries"` ; do
26    d=`dirname \`dirname $i\``
27    for e in `cat $i | grep -v "$logfile" | grep '^/' | cut -f 2 -d '/'` ; do
28      echo $d/$e
29    done
30  done
31) | ${rcsscript} | \
32sed "`echo -e 's/: - /:\\\\\n\t- /;s/\t-/\\\\\n\t-/'`" | fmt | sed '/^$/d' | \
33gawk 'BEGIN{ x = 1; }/^[0-9]/{ if (x != 1) printf "\n"; x = 0; }/\t\*/{ printf "\n"; }//{print $0; }' >${logfile}
34
35cvs -z3 commit -m "" "${logfile}"
36
37)
38
39rm -f ${rcsscript}
Note: See TracBrowser for help on using the repository browser.