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 8F46B158170 for ; Thu, 18 Jul 2024 17:25:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1560E2A10; Thu, 18 Jul 2024 17:25:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 7E2DBE2A10 for ; Thu, 18 Jul 2024 17:25:43 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 692FF335D63 for ; Thu, 18 Jul 2024 17:25:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E7701B89 for ; Thu, 18 Jul 2024 17:25:40 +0000 (UTC) From: "Vitaly Zdanevich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vitaly Zdanevich" Message-ID: <1721323500.10e643c31b2df2c5d9a53068c1f9eba8ec315103.zdanevich.vitaly@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev 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: zdanevich.vitaly X-VCS-Committer-Name: Vitaly Zdanevich X-VCS-Revision: 10e643c31b2df2c5d9a53068c1f9eba8ec315103 X-VCS-Branch: dev Date: Thu, 18 Jul 2024 17:25:40 +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: 2c8d193d-d112-4663-b4d5-4d702e03b8b4 X-Archives-Hash: 6fd31579c325728fa6b06790916e6143 commit: 10e643c31b2df2c5d9a53068c1f9eba8ec315103 Author: Vitaly Zdanevich ya ru> AuthorDate: Thu Jul 18 17:25:00 2024 +0000 Commit: Vitaly Zdanevich ya ru> 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