mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
Usage:
cd $mapnik_source/utils/format_source_files
./format_source_files.sh
(TODO: just a starting point to remove tabs,
needs some more work)
15 lines
362 B
Bash
Executable File
15 lines
362 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# batch format *.{hpp,cpp} files
|
|
|
|
MAPNIK_DIR="/Users/artem/projects/mapnik"
|
|
DIRS="$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
|
|
|
|
|