mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
* 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'
28 lines
726 B
Bash
Executable File
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
|