mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 10:19:31 +02:00

Revert partially "Add Makefile targets to format and indent source code"
This reverts commit 3bda858225
.
16 lines
259 B
Bash
Executable file
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
|