All of lore.kernel.org
 help / color / mirror / Atom feed
* Consistent indentation in meta-openembedded metadata
@ 2013-04-13 13:46 Martin Jansa
  2013-04-13 20:01 ` Otavio Salvador
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Martin Jansa @ 2013-04-13 13:46 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]

Hi,

maybe you remember my proposal to make whitespace consistent for python
and shell tasks a while back:

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026176.html

    * This change is only aesthetic (unlike indentation in Python
    * tasks).
    * Some recipes were using tabs.
    * Some were using 8 spaces.
    * Some were using mix or different number of spaces.
    * Make them consistently use 4 spaces everywhere.
    * Yocto styleguide advises to use tabs (but the only reason to keep
      tabs is the need to update a lot of recipes). Lately this advice
      was also merged into the styleguide on the OE wiki.
    * Using 4 spaces in both types of tasks is better because it's less
      error prone when someone is not sure if e.g.
      do_generate_toolchain_file() is Python or shell task and also allows
      to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
      potentially bad (shouldn't be used for indenting of multiline
      variable assignments and cannot be used for Python tasks).

I still have some scripts for semi-automatic conversion.

Now close to creating dylan branch for meta-openembedded is imho best
time to do this, not many changes from released dylan will be backported
to danny, because people will start moving to newer release instead of
backporting more and more stuff to old one (also resolving possible
whitespace merge conflict it not hard). Causing conflicts for merge was
IIRC most important reason why my proposal was rejected for oe-core.

meta-efl, meta-webos(-ports), meta-smartphone layers are already using 
it for some time and meta-openembedded recipes are using spaces in shell 
tasks in majority of recipes.

If nobody objects I'll run my scripts after all pending patches are
merged.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-04-15 18:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 13:46 Consistent indentation in meta-openembedded metadata Martin Jansa
2013-04-13 20:01 ` Otavio Salvador
2013-04-13 22:12 ` [meta-oe][PATCH] recipes: Unify indentation Martin Jansa
2013-04-14 16:30   ` Koen Kooi
2013-04-15 12:42     ` Joe MacDonald
2013-04-15 13:07       ` Martin Jansa
2013-04-15 13:13         ` Joe MacDonald
2013-04-15 13:13       ` Paul Eggleton
2013-04-15 18:30 ` Consistent indentation in meta-openembedded metadata Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.