public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/mergerfs/
Date: Sun,  2 Jun 2024 00:32:08 +0000 (UTC)	[thread overview]
Message-ID: <1717288133.5d7c36cf37f85f10bb440da0eab736bb97e6f269.sam@gentoo> (raw)

commit:     5d7c36cf37f85f10bb440da0eab736bb97e6f269
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  2 00:28:53 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  2 00:28:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d7c36cf

sys-fs/mergerfs: simplify & fix version setting

* Use heredoc rather than two consecutive echos to the same file, simpler
  w/o escaping too

* Fix path to update-version script, it moved directories

* Style tweaks

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/mergerfs/mergerfs-2.40.2.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sys-fs/mergerfs/mergerfs-2.40.2.ebuild b/sys-fs/mergerfs/mergerfs-2.40.2.ebuild
index 6946ee8428b0..12c52da625d1 100644
--- a/sys-fs/mergerfs/mergerfs-2.40.2.ebuild
+++ b/sys-fs/mergerfs/mergerfs-2.40.2.ebuild
@@ -18,21 +18,21 @@ IUSE="+xattr"
 DEPEND="
 	xattr? ( sys-apps/attr )
 "
-
 RDEPEND="${DEPEND}"
-
 BDEPEND="sys-devel/gettext"
 
 src_prepare() {
 	default
 
-	# Hand made build system at it's finest.
-	echo -e "#!/bin/sh\ntrue" >tools/update-version || die
-	echo "#pragma once" >src/version.hpp || die
-	echo "static const char MERGERFS_VERSION[] = \"${PV}\";" >>src/version.hpp || die
+	# Hand made build system at its finest.
+	echo -e "#!/bin/sh\ntrue" > buildtools/update-version || die
+	cat <<-EOF > src/version.hpp || die
+	#pragma once
+	static const char MERGERFS_VERSION[] = "${PV}";
+	EOF
 
 	if ! use xattr; then
-		sed 's%USE_XATTR = 1%USE_XATTR = 0%g' -i Makefile || die
+		sed -i -e 's%USE_XATTR = 1%USE_XATTR = 0%g' Makefile || die
 	fi
 }
 


             reply	other threads:[~2024-06-02  0:32 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-02  0:32 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-24 11:21 [gentoo-commits] repo/gentoo:master commit in: sys-fs/mergerfs/ Petr Vaněk
2024-11-01  2:55 Sam James
2024-11-01  2:55 Sam James
2024-06-02  0:32 Sam James
2024-06-02  0:32 Sam James
2023-10-09 20:02 Sam James
2023-10-09 16:21 Arthur Zamarin
2023-08-09 18:14 Piotr Karbowski
2023-07-23 16:40 Piotr Karbowski
2023-07-23 16:40 Piotr Karbowski
2023-05-21 13:49 Arthur Zamarin
2023-05-21  0:50 Sam James
2023-05-02 15:21 Arthur Zamarin
2023-05-02 15:21 Arthur Zamarin
2023-04-18 21:24 Piotr Karbowski
2023-03-29 20:51 Piotr Karbowski
2023-03-06 13:04 Arthur Zamarin
2023-03-06 12:52 Arthur Zamarin
2023-01-30 21:53 Piotr Karbowski
2023-01-30 21:53 Piotr Karbowski
2022-12-09 22:32 Sam James
2022-12-09 21:55 Arthur Zamarin
2022-10-13 21:45 Piotr Karbowski
2022-06-24  7:11 Agostino Sarubbo
2022-06-24  7:07 Agostino Sarubbo
2022-06-23 20:51 Piotr Karbowski
2022-03-27 23:20 Piotr Karbowski
2022-01-21 10:03 Jakov Smolić
2022-01-21 10:03 Jakov Smolić
2021-12-30 22:44 Piotr Karbowski
2021-12-30 22:44 Piotr Karbowski
2021-12-05 19:45 Piotr Karbowski
2021-08-19 21:10 Piotr Karbowski
2021-03-13 11:37 Sam James
2021-03-13 11:35 Sam James
2021-03-11 20:34 Piotr Karbowski
2021-02-09 23:34 Piotr Karbowski
2021-02-09 23:34 Piotr Karbowski
2021-02-04 14:42 Agostino Sarubbo
2021-02-04 14:09 Sam James
2021-02-03 22:06 Piotr Karbowski
2021-01-05 20:51 Sam James
2020-12-27 23:06 Sam James
2020-12-27 22:49 Piotr Karbowski
2020-12-10 22:23 Piotr Karbowski
2020-10-07  7:09 Agostino Sarubbo
2020-10-04 17:28 Piotr Karbowski
2020-03-08 10:37 Agostino Sarubbo
2020-03-07 20:59 Piotr Karbowski
2020-03-07 19:55 Piotr Karbowski
2019-12-10  9:54 Piotr Karbowski
2019-12-10  9:22 Piotr Karbowski
2019-12-09 20:01 Piotr Karbowski

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=1717288133.5d7c36cf37f85f10bb440da0eab736bb97e6f269.sam@gentoo \
    --to=sam@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: link
Be 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