So, after a long while, here is what I suggest you do with export.pike (the values of debian_rev and signature are merely placeholders).
--- bin/export.pike.old 2007-09-26 18:29:20.000000000 +0200 +++ bin/export.pike 2007-09-26 21:27:31.000000000 +0200 @@ -107,20 +107,29 @@
s = Stdio.read_file(pike_base_name+"/packaging/debian/changelog"); if (s) { + constant debian_rev = "0pikeauto"; + constant signature = "Pike Autobuilder xenofarm@pike.ida.liu.se" werror("Bumping Debian changelog.\n"); array(int) version = getversion(); - s = sprintf("pike%d.%d (%d.%d.%d-1) unstable; urgency=low\n" + + int sigpos = search(s, "\n -- ") + 5; + if (s[sigpos .. (sigpos+strlen(signature)-1)] == signature) { + s = s[(search(s, "\n", sigpos) + 2) ..]; + } + + s = sprintf("pike%d.%d (%d.%d.%d-%s) UNRELEASED; urgency=low\n" "\n" + " * %s\n" "\n" - " -- Marek Habersack grendel@debian.org %s\n" + " -- %s %s\n" "\n" "%s", version[0], version[1], - version[0], version[1], version[2], + version[0], version[1], version[2], debian_rev, is_release? "Release number bumped by export.pike.": "The latest cvs snapshot", + signature, Calendar.Second()->format_smtp(), s); Stdio.write_file(pike_base_name+"/packaging/debian/changelog", s);