Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: scm eclasses/ebuilds and revision logging
Date: Sat, 12 Jan 2008 15:41:22
Message-Id: fman2b$nco$1@ger.gmane.org
In Reply to: [gentoo-dev] scm eclasses/ebuilds and revision logging by Bernd Steinhauser
1 Bernd Steinhauser wrote:
2 > I'm aware of the fact, that the revision of the currently installed
3 > package is part of the environment and that is saved, but I'm not only
4 > interested in the revision of the currently installed version, but also
5 > in the revision of the previously installed version. Just wanted to
6 > emphasize that again. ;)
7 >
8 > Hope someone comes up with some good ideas. ;)
9
10 Would something like this work for you?
11
12 pkg_preinst() {
13 local pkgdate=$(date "+%Y%m%d %H:%M:%S")
14 subversion_wc_info
15 if [[ -n ${PORT_SCMDIR} ]]; then
16 [[ -e ${ROOT}/${PORT_SCMDIR}/${PN}.revision ]] \
17 && cp "${ROOT}/${PORT_SCMDIR}"/${PN}.revision "${T}"
18 echo "${pkgdate} - ${P} was merged at revision ${ESVN_WC_REVISION}" \
19 >> "${T}"/${PN}.revision
20 insinto "${PORT_SCMDIR}"
21 doins "${T}"/${PN}.revision
22 fi
23 }
24
25 that's for subversion of course. set PORT_SCMDIR in make.conf.
26
27
28 --
29 fonts, by design, by neglect
30 gcc-porting, for a fact or just for effect
31 wxwindows @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
32
33 --
34 gentoo-dev@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: scm eclasses/ebuilds and revision logging Bernd Steinhauser <gentoo@×××××××××××××××××.de>
Re: [gentoo-dev] Re: scm eclasses/ebuilds and revision logging Bernd Steinhauser <gentoo@×××××××××××××××××.de>