From: Hugo Villeneuve Date: Wed, 20 Nov 2024 18:58:34 +0000 (-0500) Subject: Add reindent-linux.sh X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=2d830bde302856fe51a9a013c64cf37fec4f8547;p=hvutilities.git Add 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"