Commit c278cac2 authored by Sam Hocevar's avatar Sam Hocevar

* toolbox:

    + toolbox --changelog now only generates this year's changelog.
  * ChangeLog, doc/ChangeLog-*:
    + Split the changelog into several files, one per year.
  * debian/rules, vlc.ebuild:
    + Distribute the new changelog files.
parent b7ab24e8
This diff is collapsed.
......@@ -365,6 +365,7 @@ binary-arch: build install
dh_installman doc/vlc-config.1 -p libvlc0-dev
# dh_installchangelogs ChangeLog -p vlc
cp ChangeLog debian/vlc/usr/share/doc/vlc/changelog
for x in doc/ChangeLog-* ; do cp "doc/ChangeLog-$${x\#*/\#*-}" "debian/vlc/usr/share/doc/vlc/changelog-$$x\#*/\#*-}" ; done
cp debian/changelog debian/vlc/usr/share/doc/vlc/changelog.Debian
dh_link -s
dh_strip -s
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
NULL =
EXTRA_DIST = \
ChangeLog-1999 \
ChangeLog-2000 \
ChangeLog-2001 \
ChangeLog-2002 \
vlc.1 \
vlc-config.1 \
bugreport-howto.txt \
......
#! /bin/sh
## toolbox for the VLC media player
## $Id: toolbox,v 1.28 2003/06/27 13:50:07 sam Exp $
## $Id: toolbox,v 1.29 2003/06/28 01:17:47 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
......@@ -20,13 +20,13 @@ help()
{
cat << EOF
recognized flags are:
--update-changelog update the CVS changelog
--update-vc update Microsoft Visual Studio files
--update-po update translation files
--update-includes generate various include files
--update-glade generate and fix Glade code
--update-glade2 generate and fix Glade 2 code
--update-flexml generate and fix flexml and flex code
--changelog update the CVS changelog
--distclean "make distclean"
EOF
exit 1
......@@ -52,7 +52,7 @@ then
fi
case "$1" in
--update-changelog)
--changelog|--update-changelog)
action=changelog
;;
--update-vc)
......@@ -91,12 +91,21 @@ shift
##
if test "${action}" = "changelog"
then
set -e
set -x
cvs2cl --help >/dev/null 2>&1 || exit 1
rm -f ChangeLog
cvs2cl --utc --hide-filenames --no-wrap -w --stdout | \
rm -f ChangeLog ChangeLog.tmp
cvs2cl --utc --hide-filenames --no-wrap -w --stdout -g -z9 | \
sed -e 's/^[^0-9]/ /' -e 's/^ *$//' | \
uniq > ChangeLog
uniq > ChangeLog.tmp
YEAR=`sed -e 's/\(....\)-..-.*/\1/;q' ChangeLog.tmp`
LASTYEAR="$((${YEAR} - 1))"
sed -ne "/^${YEAR}-..-../,/^${LASTYEAR}-..-../{/^${LASTYEAR}-..-../d;p}" \
< ChangeLog.tmp > Changelog
rm -f ChangeLog.tmp
exit 0
# To generate changelog for the year 2001:
# sed -ne '/^2001/,/^2000/{/^2000/d;p}'
fi
##
......@@ -107,7 +116,7 @@ then
echo "generating Visual Studio files..."
# The evil ^M
M=' '
M="`printf '\r'`"
# Variables we get from configure.ac
LIBVLC_VERSION=`sed -ne '/AC_INIT/s/.*,\(.*\))/\1/p' < configure.ac`
......
......@@ -2,7 +2,7 @@
# vlc.ebuild: A Gentoo ebuild for vlc
###############################################################################
# Copyright (C) 2003 VideoLAN
# $Id: vlc.ebuild,v 1.10 2003/06/28 00:29:13 sam Exp $
# $Id: vlc.ebuild,v 1.11 2003/06/28 01:17:47 sam Exp $
#
# Authors: Derk-Jan Hartman <thedj at users.sf.net>
#
......@@ -251,6 +251,6 @@ src_install() {
einstall || die "make install failed"
dodoc ABOUT-NLS AUTHORS COPYING ChangeLog HACKING INSTALL* \
MAINTAINERS NEWS README* MODULES THANKS
MAINTAINERS NEWS README* MODULES THANKS doc/ChangeLog-*
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment