openssl-format-source
Reviewed-by: Tim Hudson <tjh@openssl.org>
tmp=$(mktemp /tmp/indent.XXXXXX)
trap 'rm -f "$tmp"' HUP INT TERM EXIT
- case $j in
+ case `basename $j` in
# the list of files that indent is unable to handle correctly
# that we simply leave alone for manual formatting now
+ obj_dat.h)
+ echo "skipping $j"
+ ;;
*)
if [ "$COMMENTS" = "true" ]; then
# we have to mark single line comments as /*- ...*/ to stop indent
> "$tmp"
else
expand "$j" | indent $INDENT_ARGS > "$tmp"
- fi
+ fi;
+ mv "$tmp" "$j"
;;
esac
- mv "$tmp" "$j"
fi
done
done