[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Specifying version and revision of a package



Hi!

I'm trying to create a package for RCF (a firewall) to be built from a CVS tree and I'd like to somehow 'retrieve' the version and revision from the root Makefile (which is already used to create the .deb file...) I tried using the '-v' switch of dpkg-buildpackage to do it, but I think I misread it's use... I had a look at the new Maintainer's guide, and it mentioned that I could use 'dch -v <version>-<revision>' to bump the revision up...

In that case, in the Makefile, before I create the package, would I be able to just do 'dch -v $(VERSION)$(BRANCH)-$(DATE)' (where the variables are already defined in the Makefile) to bump up the revision... However, the only problem I forsee is that the chosen editor will appear and prompt the user to document the changes made... is there a way I can bypass that? Perhaps something similar to the '-m' switch used with CVS commands?

I also can't seem to be able to find the 'dch' command... I have su'd to root, and it's not in the path, either... Has it been removed or replaced?

Any help would be greatly appreciated...

Thankyou!



Reply to: