From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/gentoo-bashcomp:master commit in: / Date: Sun, 31 Aug 2014 21:19:07 +0000 (UTC) [thread overview] Message-ID: <1409519938.ce8ecda4ece83c04d481acacbed97a61e989cb64.mgorny@gentoo> (raw) commit: ce8ecda4ece83c04d481acacbed97a61e989cb64 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Aug 31 20:30:03 2014 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Aug 31 21:18:58 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-bashcomp.git;a=commit;h=ce8ecda4 Makefile: introduce a new 'install' rule. That handles proper install paths and substitutions. --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Makefile b/Makefile index da4702b..f167c7b 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,40 @@ distapp = gentoo-bashcomp distver := $(shell date -u +%Y%m%d) distpkg := $(distapp)-$(distver) +DESTDIR = +EPREFIX = + +# prefer paths from pkg-config, fallback to sane defaults +completionsdir ?= $(or \ + $(shell pkg-config --variable=completionsdir bash-completion 2>/dev/null), \ + ${EPREFIX}/usr/share/bash-completion/completions) +helpersdir ?= $(or \ + $(shell pkg-config --variable=helpersdir bash-completion 2>/dev/null), \ + ${EPREFIX}/usr/share/bash-completion/helpers) +compatdir ?= $(or \ + $(shell pkg-config --variable=compatdir bash-completion 2>/dev/null), \ + ${EPREFIX}/etc/bash_completion.d) + +completions := $(wildcard completions/*) +helpers := $(wildcard helpers/*) +compats := $(wildcard compat/*) + +POSTINST_SED = sed -i -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}|g" -e "s|@helpersdir@|$(helpersdir)|" + all: @echo Nothing to compile. +install: + install -d "$(DESTDIR)$(completionsdir)" + install -m0644 $(completions) "$(DESTDIR)$(completionsdir)" + $(POSTINST_SED) $(addprefix "$(DESTDIR)$(completionsdir)"/,$(notdir $(completions))) + install -d "$(DESTDIR)$(helpersdir)" + install -m0644 $(helpers) "$(DESTDIR)$(helpersdir)" + $(POSTINST_SED) $(addprefix "$(DESTDIR)$(helpersdir)"/,$(notdir $(helpers))) + install -d "$(DESTDIR)$(compatdir)" + install -m0644 $(compats) "$(DESTDIR)$(compatdir)" + $(POSTINST_SED) $(addprefix "$(DESTDIR)$(compatdir)"/,$(notdir $(compats))) + tag: git pull git tag -a $(distpkg) -m "tag $(distpkg)"
WARNING: multiple messages have this Message-ID (diff)
From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/gentoo-bashcomp:master commit in: / Date: Fri, 2 Mar 2018 18:06:58 +0000 (UTC) [thread overview] Message-ID: <1409519938.ce8ecda4ece83c04d481acacbed97a61e989cb64.mgorny@gentoo> (raw) Message-ID: <20180302180658.fDB8FW0yNjRizojX4Fm_ncAVwI_zZG2WSb5eRt1BldA@z> (raw) commit: ce8ecda4ece83c04d481acacbed97a61e989cb64 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Aug 31 20:30:03 2014 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Aug 31 21:18:58 2014 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-bashcomp.git/commit/?id=ce8ecda4 Makefile: introduce a new 'install' rule. That handles proper install paths and substitutions. Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Makefile b/Makefile index da4702b..f167c7b 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,40 @@ distapp = gentoo-bashcomp distver := $(shell date -u +%Y%m%d) distpkg := $(distapp)-$(distver) +DESTDIR = +EPREFIX = + +# prefer paths from pkg-config, fallback to sane defaults +completionsdir ?= $(or \ + $(shell pkg-config --variable=completionsdir bash-completion 2>/dev/null), \ + ${EPREFIX}/usr/share/bash-completion/completions) +helpersdir ?= $(or \ + $(shell pkg-config --variable=helpersdir bash-completion 2>/dev/null), \ + ${EPREFIX}/usr/share/bash-completion/helpers) +compatdir ?= $(or \ + $(shell pkg-config --variable=compatdir bash-completion 2>/dev/null), \ + ${EPREFIX}/etc/bash_completion.d) + +completions := $(wildcard completions/*) +helpers := $(wildcard helpers/*) +compats := $(wildcard compat/*) + +POSTINST_SED = sed -i -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}|g" -e "s|@helpersdir@|$(helpersdir)|" + all: @echo Nothing to compile. +install: + install -d "$(DESTDIR)$(completionsdir)" + install -m0644 $(completions) "$(DESTDIR)$(completionsdir)" + $(POSTINST_SED) $(addprefix "$(DESTDIR)$(completionsdir)"/,$(notdir $(completions))) + install -d "$(DESTDIR)$(helpersdir)" + install -m0644 $(helpers) "$(DESTDIR)$(helpersdir)" + $(POSTINST_SED) $(addprefix "$(DESTDIR)$(helpersdir)"/,$(notdir $(helpers))) + install -d "$(DESTDIR)$(compatdir)" + install -m0644 $(compats) "$(DESTDIR)$(compatdir)" + $(POSTINST_SED) $(addprefix "$(DESTDIR)$(compatdir)"/,$(notdir $(compats))) + tag: git pull git tag -a $(distpkg) -m "tag $(distpkg)"
next reply other threads:[~2014-08-31 21:19 UTC|newest] Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-08-31 21:19 Michał Górny [this message] 2018-03-02 18:06 ` [gentoo-commits] proj/gentoo-bashcomp:master commit in: / Michał Górny -- strict thread matches above, loose matches on Subject: below -- 2024-05-25 7:54 Arthur Zamarin 2024-05-11 3:13 Sam James 2018-03-02 18:06 Michał Górny 2014-08-31 21:19 ` Michał Górny 2016-03-16 11:55 Patrice Clement 2016-01-14 13:19 Patrice Clement 2016-01-14 13:19 Patrice Clement 2015-10-10 20:18 Patrice Clement 2013-08-12 16:43 Ryan Hill 2013-08-12 16:43 Ryan Hill 2013-08-04 19:21 Ryan Hill 2013-08-04 19:21 Ryan Hill 2013-07-30 1:36 Ryan Hill 2012-11-03 5:51 Ryan Hill 2012-10-24 4:01 Ryan Hill 2012-10-24 3:42 Ryan Hill 2012-10-24 3:42 Ryan Hill 2012-10-22 3:37 Ryan Hill 2012-10-22 0:51 Ryan Hill 2012-10-21 9:57 Ryan Hill 2012-10-11 5:01 Ryan Hill 2012-10-10 2:43 Ryan Hill 2012-10-10 2:43 Ryan Hill 2012-10-10 2:43 Ryan Hill 2012-05-06 20:35 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-04-24 16:10 Jeremy Olexa 2012-02-15 2:16 Christian Ruppert
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1409519938.ce8ecda4ece83c04d481acacbed97a61e989cb64.mgorny@gentoo \ --to=mgorny@gentoo.org \ --cc=gentoo-commits@lists.gentoo.org \ --cc=gentoo-dev@lists.gentoo.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox