Mailing List Archive

Re: [gentoo-commits] gentoo-x86 commit in eclass: java-utils-2.eclass java-virtuals-2.eclass
On 09:59 Thu 04 Oct , Alistair Bush (ali_bush) wrote:
> 1.1 eclass/java-virtuals-2.eclass
>
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-virtuals-2.eclass?rev=1.1&view=markup
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-virtuals-2.eclass?rev=1.1&content-type=text/plain

> dodir "${JAVA_PKG_VIRTUALS_PATH}"
> if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
> echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\"" \
> >> ${JAVA_PKG_VIRTUAL_PROVIDER}
> fi
>
> if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
> echo "VM=\"${JAVA_VIRTUAL_VM}\"" \
> >> ${JAVA_PKG_VIRTUAL_PROVIDER}
> fi
>
> if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
> echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\"" \
> >> ${JAVA_PKG_VIRTUAL_PROVIDER}
> fi

You can use a neat trick with a code block here, along these lines:

{
echo foo
echo bar
echo blah
} >> file

It avoids the possibility of a typo when you're retyping the same
filename multiple times, plus it's just cool.

Thanks,
Donnie
--
gentoo-dev@gentoo.org mailing list
Re: [gentoo-commits] gentoo-x86 commit in eclass: java-utils-2.eclass java-virtuals-2.eclass [ In reply to ]
Donnie Berkholz <dberkholz@gentoo.org> posted
20071005020002.GB29572@supernova, excerpted below, on Thu, 04 Oct 2007
19:00:02 -0700:

> You can use a neat trick with a code block here, along these lines:
>
> {
> echo foo
> echo bar
> echo blah
> } >> file
>
> It avoids the possibility of a typo when you're retyping the same
> filename multiple times, plus it's just cool.

Wow, that /is/ cool! Learned something new today! =8^)

You are putting an awful lot of work into these lookovers. Just some
thanks from this user, in case you haven't heard enough of it lately.
Gentoo's surely the better for it! =8^)

--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman

--
gentoo-dev@gentoo.org mailing list
Re: Re: [gentoo-commits] gentoo-x86 commit in eclass: java-utils-2.eclass java-virtuals-2.eclass [ In reply to ]
Yes it is cool, and the eclass will be updated.

Thank you dberkholz

Duncan wrote:
> Donnie Berkholz <dberkholz@gentoo.org> posted
> 20071005020002.GB29572@supernova, excerpted below, on Thu, 04 Oct 2007
> 19:00:02 -0700:
>
>> You can use a neat trick with a code block here, along these lines:
>>
>> {
>> echo foo
>> echo bar
>> echo blah
>> } >> file
>>
>> It avoids the possibility of a typo when you're retyping the same
>> filename multiple times, plus it's just cool.
>
> Wow, that /is/ cool! Learned something new today! =8^)
>
> You are putting an awful lot of work into these lookovers. Just some
> thanks from this user, in case you haven't heard enough of it lately.
> Gentoo's surely the better for it! =8^)
>
--
gentoo-dev@gentoo.org mailing list