From 2d830bde302856fe51a9a013c64cf37fec4f8547 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 20 Nov 2024 13:58:34 -0500 Subject: [PATCH] Add reindent-linux.sh --- scripts/Makefile.am | 1 + scripts/reindent-linux.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 scripts/reindent-linux.sh diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 4eb6275..7a19809 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -44,6 +44,7 @@ dist_bin_SCRIPTS = \ git-project-gitk.sh \ source-code-stats \ reindent-allman.sh \ + reindent-linux.sh \ flac2ogg flac2mp3 \ hv-scan \ hvpdf-rotate \ diff --git a/scripts/reindent-linux.sh b/scripts/reindent-linux.sh new file mode 100644 index 0000000..4076876 --- /dev/null +++ b/scripts/reindent-linux.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +ASTYLE=`which astyle` +OPTIONS="--style=linux \ + --lineend=linux \ + --indent=force-tab=8 \ + --min-conditional-indent=0 \ + --align-pointer=name \ + --pad-oper \ + --pad-header \ + --indent-col1-comments \ + --convert-tabs \ + --recursive \ + --suffix=none" + +${ASTYLE} ${OPTIONS} "*.c" +${ASTYLE} ${OPTIONS} "*.cpp" +${ASTYLE} ${OPTIONS} "*.h" +${ASTYLE} ${OPTIONS} "*.hpp" -- 2.20.1