diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2003-12-01 15:02:31 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2003-12-01 15:02:31 +0000 |
commit | 672f03b164a5541274dabab81fb3fca96899a84c (patch) | |
tree | 1471fc16e94d90f8305724067f101f5f1c4e7079 /eclass/motif.eclass | |
parent | New version and 1.0.1 stable x86 (diff) | |
download | gentoo-2-672f03b164a5541274dabab81fb3fca96899a84c.tar.gz gentoo-2-672f03b164a5541274dabab81fb3fca96899a84c.tar.bz2 gentoo-2-672f03b164a5541274dabab81fb3fca96899a84c.zip |
added motif eclass
Diffstat (limited to 'eclass/motif.eclass')
-rw-r--r-- | eclass/motif.eclass | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/eclass/motif.eclass b/eclass/motif.eclass new file mode 100644 index 000000000000..cfef61f48193 --- /dev/null +++ b/eclass/motif.eclass @@ -0,0 +1,24 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/eclass/motif.eclass,v 1.1 2003/12/01 15:02:31 lanius Exp $ +# +# Heinrich Wednel <lanius@gentoo.org> + +ECLASS=motif +INHERITED="$INHERITED $ECLASS" +DEPEND="${DEPEND} >=sys-apps/sed-4" + +# Fix all headers to version ${1} +motif_fix_headers() { + VERSION=${1} + + MATCHES="$(grep -l -i -R -e "#include <Xm" -e "#include <Mrm" -e "#include <uil" * | sort -u)" + + for i in ${MATCHES} + do + sed -i -e "s:#include <Xm:#include <Xm/${VERSION}/Xm:g" \ + -e "s:#include <Mrm:#include <Mrm/${VERSION}/Mrm:g" \ + -e "s:#include <uil:#include <uil/${VERSION}/uil:g" \ + ${i} + done +} |