summaryrefslogtreecommitdiff
path: root/scripts/auxiliar/fixscm.sh
blob: 9c8f2f3f65cdec362d36f4c3b732f58bf4673575 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Indent and untabify source files (given by their
# filenames in the command line), according to
# LilyPond source style standards.

elisp_expression='(progn
  (delete-trailing-whitespace)
  (indent-region (point-min) (point-max) nil)
  (untabify (point-min) (point-max))
  (save-buffer))'
for f in "$@"; do
  emacs -batch "$f" --eval "${elisp_expression}"
done