[Pkg-postgresql-private] FYI: Faster package rebuild

Martin Pitt martin@piware.de
Thu, 30 Oct 2003 17:27:14 +0100


Hi!

I just made a slight modification to debian/rules to allow a faster
package build. A complete build last over half an hour on my machine.
But most of the time I'm dealing with packaging issues, it is not
necessary to recompile the whole source tree.

Thus I've made a script that just rebuilds the packages. I called it
'go' and it has to be called in the package root dir. Now the packages
are build in about two minutes:

---------- go ------------
#!/bin/sh
dh_clean
rm -rf docs-build-stamp install-stamp build-indep-stamp debian/postgresql/ 2>/dev/null
fakeroot dpkg-buildpackage -nc -us -uc
---------- go ------------

Since rules contains quite a bunch of commands that cannot be executed
twice (like mv), I do not guarantee that the packages are correct in
every detail, so a final build should be done from a cleaned source
dir. But at least for me it speeds up development cycle drastically.

Martin
-- 
Martin Pitt
home:  www.piware.de
eMail: martin@piware.de