[Qgis-developer] indentation scripts
Jürgen E. Fischer
jef at norbit.de
Thu Jul 2 05:35:37 EDT 2009
Hi there,
I'm not sure everyone is aware of this: in the process of releasing 1.0 of QGIS
we reindented our code base.
To maintain the indentation I added a few files to the scripts directory:
astyle.sh:
runs astyle with our indentation settings on passed files. It also makes sure
that unix style endings are used if flip(1) is available.
prepare-commit.sh:
checks what was changed in the working copy, runs that through astyle.sh and
shows a diff of the indentation changes. This should be run before each
commit.
update-indent.sh:
keeps track of the revision it was last run on, updates to the current
revision, runs all files change inbetween through astyle.sh and echos the svn
commit command that should be run to commit the reindentation. Currently I
run it manually from time to time.
Originally Tim and I wanted to do automate this on commit using a server side
hook, but server side hooks are not allowed to change code. But we might at
some point implement something that rejects commits that astyle.sh would
change.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
More information about the Qgis-developer
mailing list