forked from xcompact3d/Incompact3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
indent.sh
26 lines (23 loc) · 596 Bytes
/
indent.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#
# FILE: indent.sh
# AUTHOR: Paul Bartholomew
# DESCRIPTION: Use emacs to indent files
#
# decomp2d/
for f in decomp2d/*.f90
do
echo "Indenting ${f}"
emacs -batch ${f} --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer 2> /dev/null
done
for f in decomp2d/*.inc
do
echo "Indenting ${f}"
emacs -batch ${f} --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer 2> /dev/null
done
# src/
for f in src/*.f90
do
echo "Indenting ${f}"
emacs -batch ${f} --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer 2> /dev/null
done