mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
18 lines
410 B
Bash
Executable file
18 lines
410 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
argsFile=$1.args
|
|
if [ -e ${argsFile} ]; then
|
|
args=$(cat ${argsFile})
|
|
fi
|
|
echo "Args:" ${args}
|
|
../bin/dfmt --brace_style=allman ${args} $1.d > allman/$1.d.ref
|
|
../bin/dfmt --brace_style=otbs ${args} $1.d > otbs/$1.d.ref
|
|
|
|
echo "------------------"
|
|
echo "allman:"
|
|
echo "------------------"
|
|
cat allman/$1.d.ref
|
|
echo "------------------"
|
|
echo "otbs:"
|
|
echo "------------------"
|
|
cat otbs/$1.d.ref
|