On Sat, 2001-11-10 at 18:03, Andreas Voegele wrote: > Mikael Hallendal writes: > > > We should write some spec. on how ebuilds should look like > > (guidelines for style) and then make a emacs and a vi mode for > > editing ebuilds that controls the style. > > If only tabs and *no* spaces were allowed at the beginning of lines it > would be very easy to check ebuild scripts for wrong spaces. > > We could rip the required code from the Emacs Makefile mode, which > checks for suspicious tabs and highlights these areas when a user > tries to save the Makefile. > > BTW, if a single tab was used in front of dependencies the output > would look like this: > > tabwidth 4: > > DEPEND="virtual/glibc > virtual/x11 > RDEPEND="virtual/glibc > virtual/x11 > > tabwidth 8: > > DEPEND="virtual/glibc > virtual/x11 > RDEPEND="virtual/glibc > virtual/x11 > > IMHO both outputs look good, and with this solution developers could > still set the tabwidth to 4 or 8. > > -- > Andreas true, but that is not a problem, take for instance: make prefix=${D}/usr \ sysconfdir=${D}/etc \ localstatedir=${D}/var/lib \ install || die this is how Hallski and I do things (with a tabwidth of 8) Now take the same piece with a tabwidht of 4: make prefix=${D}/usr \ sysconfdir=${D}/etc \ localstatedir=${D}/var/lib \ install || die The '\' is not aligned anymore. this is however a simple example, as other ebuilds gets ripped out of form more. Greetings, -- Martin Schlemmer Gentoo Linux Developer, Desktop Team Developer Cape Town, South Africa