List Info

Thread: changelog creator for new releases




changelog creator for new releases
user name
2007-04-30 12:56:28
moin,

for a long time I got in trouble every time I need to
remember the
syntax to dump the commits after a specific release. I have
now made a
bash script for that and wish to share with the ones that
could be
interested. This is specially useful when writing the
changelog when
making a new release.

It would also be good to have the script and/or the cvs
syntax
published in the Manual.

note that the script will create (or overwrite) a file
called
"changelog" in the actual dir.
I named it "dumpchanges". If you have a better
name or any update just
let me know ;)

Here it goes:
#!/bin/bash

if [ -z $1 ] || [ -z $2 ] || [[ $1 != "-r"
&& $1 != "-d" ]] ; then
    echo "usage: dumpchanges [-r|-d] parameter"
    echo "    -r    Select by release Tag"
    echo "    -d    Select by Date"
    echo "example:"
    echo "    dumpchanges -r RELEASE_0_1_0"
    echo "    dumpchanges -d 2007-04-07"
    exit
fi

if [ $1 == "-r" ]; then
    cvs log -NS -r$2:: > changelog
else
    cvs log -NS -d>$2 > changelog
fi

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )