Russ Allbery wrote:
Thomas Goirand <tho...@goirand.fr> writes:then in your debian/rules build rule, you can do something like:MY_VERS=`head -n 1 debian/changelog | cut -d'(' -f2 | cut -d')' -f1 | cut -d'-' -f1` MY_DEB_REL=`head -n 1 debian/changelog | cut -d'(' -f2 | cut -d')' -f1 | cut -d'-' -f2` MY_PKGNAME=`head -n 1 debian/changelog | cut -d' ' -f1`dpkg-parsechangelog makes this somewhat easier and more robust. Yes, but I'm using this in both deb and rpm building, and of course, dpkg-parsechangelog is not available in RPM based distros. Thomas-- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bdd251e.2030...@goirand.fr |
- Re: Specifying %{variable} in control file for use ... Ignacio Valdes
- Re: Specifying %{variable} in control file for... Boyd Stephen Smith Jr.
- Re: Specifying %{variable} in control file for... Ignacio Valdes
- Re: Specifying %{variable} in control file... Thomas Goirand
- Re: Specifying %{variable} in control ... Russ Allbery
- Re: Specifying %{variable} in cont... Thomas Goirand
- Re: Specifying %{variable} in... Goswin von Brederlow
- Re: Specifying %{variable... Thomas Goirand
- Re: Specifying %{vari... Goswin von Brederlow
- Re: Specifying %{vari... Thomas Goirand
- Re: Specifying %{vari... Goswin von Brederlow
- Re: Specifying %{vari... Thomas Goirand
- Re: Specifying %{variable} in control file... Ignacio Valdes
- Re: Specifying %{variable} in control ... Ignacio Valdes