Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   Makefile.common change (http://www.linux-archive.org/fedora-build-system/75149-makefile-common-change.html)

Dennis Gilmore 04-24-2008 04:02 AM

Makefile.common change
 
On Wednesday 23 April 2008, Bill Nottingham wrote:
> Dennis Gilmore (dennis@ausil.us) said:
> > ? Makefile.common.branch
> > Index: Makefile.common
> > ================================================== =================
> > RCS file: /cvs/pkgs/common/Makefile.common,v
> > retrieving revision 1.94
> > diff -u -r1.94 Makefile.common
> > --- Makefile.common 22 Apr 2008 15:44:53 -0000 1.94
> > +++ Makefile.common 24 Apr 2008 02:30:13 -0000
> > @@ -19,7 +19,7 @@
> > ifndef HEAD_BRANCH
> > HEAD_BRANCH := devel
> > endif
> > -BRANCH:=$(shell [ -f branch ] && cat branch || echo $(HEAD_BRANCH))
> > +BRANCH:=$(lastword $(shell pwd| cut -d/ --output-delimiter=" " -f2-))
> > # check to see if this is an early branched package; we should make this
> > more # generic in the future
> > ifeq ($(BRANCH),devel)
>
> Seems good. Of course, there's 5000 ways to do it, with cut, awk,
> ${foo##*/}, etc.

Thanks ive applied

Dennis
--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list


All times are GMT. The time now is 11:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.