2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/dev/tools/fixnotabfiles.sh
MDW 16f723f0ba Qual Language scripts fixed/updated (#28101)
* Qual: Fix/extend language scripts, integrate in pre-commit

Updated scripts to comply with shellscript.
Integrated one in pre-commit that seems useful.

* Qual: Find duplicate lang keys

* Add line numbers (to allow annotation)

* Fix fixaltlanguages.sh and add to pre-commit

* Make historical language checks 'manual' in 'pre-commit'
2024-02-10 17:26:34 +01:00

28 lines
726 B
Bash
Executable File

#!/bin/sh
#------------------------------------------------------
# Detect files that does not contains any tab inside
#
# Laurent Destailleur - eldy@users.sourceforge.net
#------------------------------------------------------
# Usage: fixnotabfiles.sh [list|fix]
#------------------------------------------------------
# Syntax
if [ "$1" != "list" ] && [ "$1" != "fix" ]
then
echo "Detect .sh and .spec files that does not contain any tab"
echo "Usage: fixnotabfiles.sh [list|fix]"
fi
# List/Detect files
if [ "$1" = "list" ]
then
find build \( -iname "*.sh" -o -iname "*.spec" \) -exec grep -L -P '\t' {} \;
fi
# Fix/convert files
if [ "$1" = "fix" ]
then
echo Feature not implemented. Please fix files manually.
fi