recent mktemp wants template in gmxuncrust.XXXXX format
also canonical *nix based which doesnt have -s arg
Change-Id: Ic054c4eef3d4a49b7bae96b1012ec323a347567d
Signed-off-by: Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
echo "See comments in the script file for how to get one."
exit 2
fi
-if ! which -s "$UNCRUSTIFY"
+if ! which "$UNCRUSTIFY" 1>/dev/null
then
echo "Uncrustify not found: $UNCRUSTIFY"
exit 2
fi
# Actual processing starts: create a temporary directory
-tmpdir=`mktemp -d -t gmxuncrust`
+tmpdir=`mktemp -d -t gmxuncrust.XXXXXX`
# Produce a list of changed files
# Only include files that have uncrustify set as filter in .gitattributes