mapnik/utils/format_source_files/format_source_files.sh

15 lines
377 B
Bash
Raw Normal View History

#!/bin/bash
# batch format *.{hpp,cpp} files
MAPNIK_DIR=`pwd`
DIRS="$MAPNIK_DIR/plugins $MAPNIK_DIR/demo/c++ $MAPNIK_DIR/src $MAPNIK_DIR/include $MAPNIK_DIR/bindings $MAPNIK_DIR/utils"
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