commit:     ff33eb6f5fb5988a4563810346f347876c069857
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 16:48:44 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 16:54:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff33eb6f

net-misc/tinyssh: small style tweaks

Not invasive ones, more general Gentoo style ones:
* use 'local i'
* use ${x}

And add a missing die.

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

 net-misc/tinyssh/tinyssh-20241111.ebuild | 5 +++--
 net-misc/tinyssh/tinyssh-99999999.ebuild | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/net-misc/tinyssh/tinyssh-20241111.ebuild 
b/net-misc/tinyssh/tinyssh-20241111.ebuild
index 07aeb225e8ec..e1c07e90c588 100644
--- a/net-misc/tinyssh/tinyssh-20241111.ebuild
+++ b/net-misc/tinyssh/tinyssh-20241111.ebuild
@@ -31,7 +31,7 @@ RDEPEND="
 src_prepare() {
        default
 
-       echo 'gentoo-autoheaders: $(AUTOHEADERS)' >> Makefile
+       echo 'gentoo-autoheaders: $(AUTOHEADERS)' >> Makefile || die
 }
 
 src_configure() {
@@ -46,6 +46,7 @@ src_configure() {
 
        emake gentoo-autoheaders
 
+       local i
        for i in has*.log
        do
                einfo "$i"
@@ -55,7 +56,7 @@ src_configure() {
 
 src_install() {
        einstalldocs
-       emake install DESTDIR="$D" PREFIX=/usr
+       emake install DESTDIR="${D}" PREFIX=/usr
 
        newinitd "${FILESDIR}/${PN}.initd" "${PN}"
        newconfd "${FILESDIR}/${PN}.confd" "${PN}"

diff --git a/net-misc/tinyssh/tinyssh-99999999.ebuild 
b/net-misc/tinyssh/tinyssh-99999999.ebuild
index 07aeb225e8ec..e1c07e90c588 100644
--- a/net-misc/tinyssh/tinyssh-99999999.ebuild
+++ b/net-misc/tinyssh/tinyssh-99999999.ebuild
@@ -31,7 +31,7 @@ RDEPEND="
 src_prepare() {
        default
 
-       echo 'gentoo-autoheaders: $(AUTOHEADERS)' >> Makefile
+       echo 'gentoo-autoheaders: $(AUTOHEADERS)' >> Makefile || die
 }
 
 src_configure() {
@@ -46,6 +46,7 @@ src_configure() {
 
        emake gentoo-autoheaders
 
+       local i
        for i in has*.log
        do
                einfo "$i"
@@ -55,7 +56,7 @@ src_configure() {
 
 src_install() {
        einstalldocs
-       emake install DESTDIR="$D" PREFIX=/usr
+       emake install DESTDIR="${D}" PREFIX=/usr
 
        newinitd "${FILESDIR}/${PN}.initd" "${PN}"
        newconfd "${FILESDIR}/${PN}.confd" "${PN}"

Reply via email to