<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/scripts, branch v4.1.93</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.1.93</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.1.93'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2014-05-22T18:20:04Z</updated>
<entry>
<title>Small tweaks to our whitespace handling</title>
<updated>2014-05-22T18:20:04Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-05-22T06:03:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=c7e7cebed6e40e0828aa36c3ed3f978c15ea8f5e'/>
<id>urn:sha1:c7e7cebed6e40e0828aa36c3ed3f978c15ea8f5e</id>
<content type='text'>
This is still not (and likely will never be) intended to just be blindly
run and mechanically applied to all files. It tries to implement our rules
but it is not perfect and more importantly, we have parts of the code
where we intentionally break our rules for various reasons of readability
in that particular situation.

But running this against the sources files you touch often will point out
things that are wrong and should be fixed.

This fixes the indentation for continuation lines and the handling of the
for each style loops (clang 3.5 should have this built in - I'll play with
the current development version of this later).

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Make it executable and remove magic whitespace on shebang line.</title>
<updated>2014-03-06T15:08:00Z</updated>
<author>
<name>Cristian Ionescu-Idbohrn</name>
<email>cristian.ionescu-idbohrn@axis.com</email>
</author>
<published>2014-03-06T12:37:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4e94da46fdbb140e18a22b3af3f59e989d779b80'/>
<id>urn:sha1:4e94da46fdbb140e18a22b3af3f59e989d779b80</id>
<content type='text'>
Signed-off-by: Cristian Ionescu-Idbohrn &lt;cristian.ionescu-idbohrn@axis.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Another small tweak to whitespace tool</title>
<updated>2014-03-05T21:02:23Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-03-05T20:19:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1b103c5c69083a106e88cb423bab8ade639c71d6'/>
<id>urn:sha1:1b103c5c69083a106e88cb423bab8ade639c71d6</id>
<content type='text'>
clang-format doesn't appear to reindent multi line #define statements
correctly - so this hopefully will clean those up.

The included whitespace corrections to the code should stay in place when
using the updated tool.

This includes cleaning up some multi-line comments that were messed up the
last time around as well as a few other minor changes.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Whitespace cleanup</title>
<updated>2014-03-03T21:29:22Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-03-03T21:25:55Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7c535452f97947c0bf77a1da0323b86b9e514c8f'/>
<id>urn:sha1:7c535452f97947c0bf77a1da0323b86b9e514c8f</id>
<content type='text'>
Minor change to the perl postprocessing script and resulting changes to
the affected source files.

This deals with two issues:
- "foreach"-like structures were not always treated correctly
- some longer calculations that ended on "+ constant" were reformatted in
  a rather unatractive manner

In one source file (divelist.c) I ended up adding braces to the sources...
trying to cascade the indentation further down without having the block
there seemed a lot more trouble than it's worth.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Continue to improve whitespace cleanup helper</title>
<updated>2014-02-16T23:58:13Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-02-16T23:38:01Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=42f32671a877bd5d0c36dcea5cc58220f1d47a82'/>
<id>urn:sha1:42f32671a877bd5d0c36dcea5cc58220f1d47a82</id>
<content type='text'>
The more I try the cleanup helper, the more corner cases I find...

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Fine tuning of the whitespace / coding style post processing</title>
<updated>2014-02-14T06:10:21Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-02-14T06:08:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=ebac81b784056cd288a5b69f7c341fecdc89d5e5'/>
<id>urn:sha1:ebac81b784056cd288a5b69f7c341fecdc89d5e5</id>
<content type='text'>
The struct / class regex was way too relaxed.
Having the parent class on the same line usually looks better.
clang-format appears to do something odd with continuation strings - even
with UseTab: Always it indents those with four spaces.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Add a simplistic tool to clean up whitespace</title>
<updated>2014-02-13T06:33:01Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2014-02-13T06:30:03Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=933d44083e2f0787c46228ce03f924e8f4f84414'/>
<id>urn:sha1:933d44083e2f0787c46228ce03f924e8f4f84414</id>
<content type='text'>
This hasn't been tested enought, but it seems to get really close.

It assumes that clang-format is in your patch.

Run

perl scripys/whitespace.pl FILENAME

and you'll get a diff of what it things is wrong with that file.
If you like what you see, simply pipe the output into patch -p0

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Make the SupportedDivecomputers.html match web site</title>
<updated>2013-12-15T16:16:06Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2013-12-15T16:16:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=be7978679ab8986cbbc214456b7ac8805fcd8b26'/>
<id>urn:sha1:be7978679ab8986cbbc214456b7ac8805fcd8b26</id>
<content type='text'>
I had forgotten that I used &lt;dl&gt; and not &lt;ul&gt; for the dive computers on
the web site.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Convert structure list of supported dive computers to txt / html</title>
<updated>2013-12-14T00:44:51Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2013-12-14T00:28:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=4a53c652e24b98258889c48f89c46b6fe065df09'/>
<id>urn:sha1:4a53c652e24b98258889c48f89c46b6fe065df09</id>
<content type='text'>
This adds a silly perl script to create either a txt or html file from the
structured descriptor3.tsv file. This way we can maintain the structured
file and easily create both text and html output from it.

Instead of somehow adding this to qmake I decided to simply add the two
output files so that they are included in the source tar file.

Recreate them by running
perl scripts/parse-descriptor.pl descriptor3.tsv SupportedDivecomputers.html
perl scripts/parse-descriptor.pl descriptor3.tsv SupportedDivecomputers.txt

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Fix two issues with directory searches on Windows</title>
<updated>2013-10-12T17:30:00Z</updated>
<author>
<name>Thiago Macieira</name>
<email>thiago@macieira.org</email>
</author>
<published>2013-10-12T03:39:56Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6026fef35e106fb8e6c2572ebda5dac4487c25d7'/>
<id>urn:sha1:6026fef35e106fb8e6c2572ebda5dac4487c25d7</id>
<content type='text'>
First, make sure we actually match /c/windows from the beginning, not
if it occurs in the middle of the path.

Second, make sure that directories containing the binaries are
searched first. Do that by using unshift (prepend) instead of push
(append).

Signed-off-by: Thiago Macieira &lt;thiago@macieira.org&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
</feed>
