mirror of
https://github.com/grumpycoders/pcsx-redux.git
synced 2026-10-12 02:15:13 +00:00
Slight improvements to the code formatter.
This commit is contained in:
@@ -12,8 +12,8 @@ FROM ubuntu:18.04 AS run
|
||||
RUN apt-get -y update
|
||||
RUN apt-get -y install apt-utils
|
||||
RUN apt-get -y dist-upgrade
|
||||
RUN apt-get -y install clang-format
|
||||
RUN apt-get -y install clang-format tofrodos
|
||||
COPY --from=build /bin/tabremover /bin
|
||||
COPY run-format.sh .
|
||||
|
||||
CMD ["bash"]
|
||||
CMD ["/run-format.sh"]
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
cd $(dirname $0)/../..
|
||||
|
||||
docker build -t code-format tools/code-format
|
||||
docker run --rm=true -v "$(pwd)":/repository --user "$(id -u):$(id -g)" -t code-format /run-format.sh
|
||||
docker run --rm=true -v "$(pwd)":/repository --user "$(id -u):$(id -g)" -t code-format
|
||||
|
||||
@@ -4,6 +4,7 @@ cd repository/src
|
||||
|
||||
find . -name *.c -or -name *.cc -or -name *.h | while read f ; do
|
||||
echo "$f"
|
||||
fromdos "$f"
|
||||
tabremover -t 8 "$f" "$f".2
|
||||
mv "$f.2" "$f"
|
||||
clang-format --style=file "$f" > "$f.2"
|
||||
|
||||
Reference in New Issue
Block a user