File: format_source_files.sh

package info (click to toggle)
mapnik 4.0.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 18,408 kB
  • sloc: cpp: 160,934; python: 1,221; sh: 687; xml: 161; makefile: 122; perl: 28; lisp: 13
file content (13 lines) | stat: -rwxr-xr-x 415 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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 $MAPNIK_DIR/tests $MAPNIK_DIR/deps/agg"

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