1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-04 10:19:31 +02:00
ejabberd/tools/rebar3-format.sh
Badlop 378bf64fd5 Replace rebar3_format with efmt, improve emacs indentation script
Revert partially "Add Makefile targets to format and indent source code"
This reverts commit 3bda858225.
2025-09-03 12:22:08 +02:00

16 lines
259 B
Bash
Executable file

#!/bin/sh
# To format the source code, simply run:
# make format
LOG=${1:-/tmp/ejabberd-format.log}
REBAR3=${2:-rebar3}
$REBAR3 efmt -w --parallel >$LOG 2>&1
if ! grep -q 'All files were formatted correctly' $LOG
then
cat $LOG
exit 1
fi
rm $LOG