Skip to content

Commit

Permalink
removed exceptions from astyle.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Oct 3, 2024
1 parent 5d82be0 commit 17cbb48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion .astyle.legacy.options

This file was deleted.

13 changes: 1 addition & 12 deletions src/astyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ DIRS=${DIRS##*/}
echo "$DIRS"
# shellcheck disable=SC2125
test -z "$DIRS" && DIRS=*
use_legacy=(
)

legacy_options=../../.astyle.legacy.options
standard_options=../../.astyle.options
options=../../.astyle.options

for dir in $DIRS; do
test -d "$dir" || continue
Expand All @@ -27,14 +24,6 @@ for dir in $DIRS; do
echo "Problem with 'cd $dir'"
exit 1
}
#set up which set of options to use
options=$standard_options
for i in "${use_legacy[@]}"; do
if [ "$i" == "$dir" ]; then
options=$legacy_options
break
fi
done

for file in *.c *.cpp *.h *.inc.in; do

Expand Down

0 comments on commit 17cbb48

Please sign in to comment.