2010-06-02 11:03:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# batch format *.{hpp,cpp} files
|
|
|
|
|
2011-11-14 03:39:43 +00:00
|
|
|
MAPNIK_DIR=`pwd`
|
2012-04-17 05:33:37 +00:00
|
|
|
DIRS="$MAPNIK_DIR/plugins $MAPNIK_DIR/demo/c++ $MAPNIK_DIR/src $MAPNIK_DIR/include $MAPNIK_DIR/bindings $MAPNIK_DIR/utils $MAPNIK_DIR/tests"
|
2010-06-02 11:03:39 +00:00
|
|
|
EMACS="emacs"
|
|
|
|
|
|
|
|
for file in $(find $DIRS -name '*.cpp' -o -name '*.hpp')
|
|
|
|
do
|
|
|
|
$EMACS -batch $file -l $MAPNIK_DIR/utils/format_source_files/mapnik_format.el -f mapnik-format-function
|
|
|
|
done
|
|
|
|
|
|
|
|
|