From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CFEEA159C96 for ; Wed, 24 Jul 2024 07:28:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91797E2AB2; Wed, 24 Jul 2024 07:28:24 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 69DE2E2AA3 for ; Wed, 24 Jul 2024 07:28:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58F6C340CB1 for ; Wed, 24 Jul 2024 07:28:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E459C1E30 for ; Wed, 24 Jul 2024 07:28:21 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1721323500.10e643c31b2df2c5d9a53068c1f9eba8ec315103.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-backup/timeshift-autosnap/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild X-VCS-Directories: app-backup/timeshift-autosnap/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 10e643c31b2df2c5d9a53068c1f9eba8ec315103 X-VCS-Branch: master Date: Wed, 24 Jul 2024 07:28:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f6d38e6-9e67-474c-833a-347679e25135 X-Archives-Hash: d5d31383218fd1965502231810a255b8 commit: 10e643c31b2df2c5d9a53068c1f9eba8ec315103 Author: Vitaly Zdanevich ya ru> AuthorDate: Thu Jul 18 17:25:00 2024 +0000 Commit: David Roman gmail com> CommitDate: Thu Jul 18 17:25:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=10e643c3 app-backup/timeshift-autosnap: ExcessiveLineLength fix Signed-off-by: Vitaly Zdanevich ya.ru> .../timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild index 36a6cbead..5f0c5c0f4 100644 --- a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild +++ b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9-r1.ebuild @@ -17,11 +17,17 @@ RDEPEND="app-backup/timeshift" PATCHES=( "${FILESDIR}/${PN}-remove-arch-specific.patch" ) +bashrc=/etc/portage/bashrc DISABLE_AUTOFORMATTING=1 -DOC_CONTENTS='to run timeshift-autosnap everytime you emerge a package run: -$ touch /etc/portage/bashrc -$ grep -q "#!/bin/" /etc/portage/bashrc || awk -i inplace "BEGINFILE{print "#!/bin/sh"}{print}" /etc/portage/bashrc -$ grep -q timeshift-autosnap /etc/portage/bashrc || echo "function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }" >> /etc/portage/bashrc' +DOC_CONTENTS="to run timeshift-autosnap everytime you emerge a package run: +# touch ${bashrc} + +# grep -q '#!/bin/' ${bashrc} || awk -i inplace 'BEGINFILE{print '#!/bin/sh'}{print}' ${bashrc} + +# grep -q timeshift-autosnap ${bashrc} || echo ' +function pre_pkg_setup() { + /usr/bin/timeshift-autosnap ; +}' >> ${bashrc}" src_install(){ dobin timeshift-autosnap