Gentoo Archives: gentoo-dev

From: "Amadeusz Żołnowski" <aidecoe@g.o>
To: Peter Stuge <peter@×××××.se>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] rebar.eclass: Build Erlang/OTP projects using dev-util/rebar
Date: Fri, 20 May 2016 23:09:24
Message-Id: 87eg8wwcmg.fsf@freja.aidecoe.name
In Reply to: Re: [gentoo-dev] [PATCH] rebar.eclass: Build Erlang/OTP projects using dev-util/rebar by Peter Stuge
1 Peter Stuge <peter@×××××.se> writes:
2
3 >> + pushd "${EPREFIX}$(get_erl_libs)" >/dev/null
4 >> + for p in ${pn} ${pn}-*; do
5 >> + if [[ -d ${p} ]]; then
6 >> + echo "${p#${pn}-}"
7 >> + return 0
8 >
9 > No popd on success?
10
11 Thanks for catching this up! Fixed.
12
13 >> + local tmpf="$(emktemp)"
14 >> +
15 >> + cat "${f}" >"${tmpf}" || return 1
16 >> + awk "$@" "${tmpf}" >"${f}"
17 >> +}
18 >
19 > Wouldn't it be nicer to cut cat, awk > $tmpf && mv $tmpf $f ?
20
21 No. Please see separate review of eawk where it is explained.
22
23 Thanks,
24 -- Amadeusz Żołnowski

Attachments

File name MIME type
signature.asc application/pgp-signature