/[gentoo-x86]/eclass/bsdmk.eclass
Gentoo

Diff of /eclass/bsdmk.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.9 2008/08/08 21:16:24 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.10 2011/11/02 22:55:56 aballier Exp $
4 4
5# @ECLASS: bsdmk.eclass 5# @ECLASS: bsdmk.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Otavio R. Piske "AngusYoung" <angusyoung@gentoo.org> 7# Otavio R. Piske "AngusYoung" <angusyoung@gentoo.org>
8# Diego Pettenò <flameeyes@gentoo.org> 8# Diego Pettenò <flameeyes@gentoo.org>
62# @DESCRIPTION: 62# @DESCRIPTION:
63# removes the specified subdirectories and creates a dummy makefile in them 63# removes the specified subdirectories and creates a dummy makefile in them
64# useful to remove the need for "minimal" patches 64# useful to remove the need for "minimal" patches
65dummy_mk() { 65dummy_mk() {
66 for dir in $@; do 66 for dir in $@; do
67 [ -d ${dir} ] || ewarn "dummy_mk called on a non-existing directory: $dir"
68 [ -f ${dir}/Makefile ] || ewarn "dummy_mk called on a directory without Makefile: $dir"
67 echo ".include <bsd.lib.mk>" > ${dir}/Makefile 69 echo ".include <bsd.lib.mk>" > ${dir}/Makefile
68 done 70 done
69} 71}
70 72
71# @FUNCTION: bsdmk_src_compile 73# @FUNCTION: bsdmk_src_compile

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20