This is an updated version which make a more tightly-focused change.
On 12/7/06, Matt Hoosier <[EMAIL PROTECTED]> wrote:
Hi, I often find that I need to make refinements to the packaging of foreign Scratchbox toolchains that are already deployed as Debian packages. This is a bit of a pain with sb-toolchain-extras, because the Debian packages generated have no release number and thus an updated toolchain package doesn't look newer to dpkg. The attached patch allows one to define a RELEASE variable in the toolchain .conf file, and this will be appended to the final binary package's version. Example: COMPILER_NAME = arm-linux-2006q3-27 COMPILER_PACKAGE = scratchbox-toolchain-arm-linux-2006q3-27 ALIEN_TC = yes RELEASE = 2 CC_VER = 4.1 ... --Matt
Index: Makefile =================================================================== --- Makefile (revision 2849) +++ Makefile (working copy) @@ -45,9 +45,15 @@ -e "s/<CONFLICTS>/$(CONFLICTS)/" \ debian/control.in > debian/control +ifdef RELEASE + sed -e "s/<VERSION>/$(VERSION)-$(RELEASE)/" \ + -e "s/<DATE>/$(DATE)/" \ + debian/changelog.in > debian/changelog +else sed -e "s/<VERSION>/$(VERSION)/" \ -e "s/<DATE>/$(DATE)/" \ debian/changelog.in > debian/changelog +endif cp COPYRIGHT debian/copyright
_______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users