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 ...@@ -365,6 +365,7 @@ binary-arch: build install
dh_installman doc/vlc-config.1 -p libvlc0-dev dh_installman doc/vlc-config.1 -p libvlc0-dev
# dh_installchangelogs ChangeLog -p vlc # dh_installchangelogs ChangeLog -p vlc
cp ChangeLog debian/vlc/usr/share/doc/vlc/changelog 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 cp debian/changelog debian/vlc/usr/share/doc/vlc/changelog.Debian
dh_link -s dh_link -s
dh_strip -s dh_strip -s
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
NULL = NULL =
EXTRA_DIST = \ EXTRA_DIST = \
ChangeLog-1999 \
ChangeLog-2000 \
ChangeLog-2001 \
ChangeLog-2002 \
vlc.1 \ vlc.1 \
vlc-config.1 \ vlc-config.1 \
bugreport-howto.txt \ bugreport-howto.txt \
......
#! /bin/sh #! /bin/sh
## toolbox for the VLC media player ## 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> ## Authors: Samuel Hocevar <sam@zoy.org>
...@@ -20,13 +20,13 @@ help() ...@@ -20,13 +20,13 @@ help()
{ {
cat << EOF cat << EOF
recognized flags are: recognized flags are:
--update-changelog update the CVS changelog
--update-vc update Microsoft Visual Studio files --update-vc update Microsoft Visual Studio files
--update-po update translation files --update-po update translation files
--update-includes generate various include files --update-includes generate various include files
--update-glade generate and fix Glade code --update-glade generate and fix Glade code
--update-glade2 generate and fix Glade 2 code --update-glade2 generate and fix Glade 2 code
--update-flexml generate and fix flexml and flex code --update-flexml generate and fix flexml and flex code
--changelog update the CVS changelog
--distclean "make distclean" --distclean "make distclean"
EOF EOF
exit 1 exit 1
...@@ -52,7 +52,7 @@ then ...@@ -52,7 +52,7 @@ then
fi fi
case "$1" in case "$1" in
--update-changelog) --changelog|--update-changelog)
action=changelog action=changelog
;; ;;
--update-vc) --update-vc)
...@@ -91,12 +91,21 @@ shift ...@@ -91,12 +91,21 @@ shift
## ##
if test "${action}" = "changelog" if test "${action}" = "changelog"
then then
set -e
set -x
cvs2cl --help >/dev/null 2>&1 || exit 1 cvs2cl --help >/dev/null 2>&1 || exit 1
rm -f ChangeLog rm -f ChangeLog ChangeLog.tmp
cvs2cl --utc --hide-filenames --no-wrap -w --stdout | \ cvs2cl --utc --hide-filenames --no-wrap -w --stdout -g -z9 | \
sed -e 's/^[^0-9]/ /' -e 's/^ *$//' | \ 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 exit 0
# To generate changelog for the year 2001:
# sed -ne '/^2001/,/^2000/{/^2000/d;p}'
fi fi
## ##
...@@ -107,7 +116,7 @@ then ...@@ -107,7 +116,7 @@ then
echo "generating Visual Studio files..." echo "generating Visual Studio files..."
# The evil ^M # The evil ^M
M=' ' M="`printf '\r'`"
# Variables we get from configure.ac # Variables we get from configure.ac
LIBVLC_VERSION=`sed -ne '/AC_INIT/s/.*,\(.*\))/\1/p' < configure.ac` LIBVLC_VERSION=`sed -ne '/AC_INIT/s/.*,\(.*\))/\1/p' < configure.ac`
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# vlc.ebuild: A Gentoo ebuild for vlc # vlc.ebuild: A Gentoo ebuild for vlc
############################################################################### ###############################################################################
# Copyright (C) 2003 VideoLAN # 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> # Authors: Derk-Jan Hartman <thedj at users.sf.net>
# #
...@@ -251,6 +251,6 @@ src_install() { ...@@ -251,6 +251,6 @@ src_install() {
einstall || die "make install failed" einstall || die "make install failed"
dodoc ABOUT-NLS AUTHORS COPYING ChangeLog HACKING INSTALL* \ 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