Skip to content
Snippets Groups Projects
Commit c01e846b authored by Bienchen's avatar Bienchen
Browse files

Excluded doc/html from being checked for whitespaces

parent aa9458ed
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# Last modified: Thu 26 Jun 14 # Last modified: Thu 03 Jul 14
# global settings # global settings
my_git_hook_repo="extras/pre-commit" my_git_hook_repo="extras/pre-commit"
my_abortmsg="aborting commit." my_abortmsg="aborting commit."
my_min_git_version="1.7.5.1" my_min_git_version="1.7.5.1"
### my_wel: whitespace check exclude list ### my_wel: W_hitespace check E_xclude L_ist
### .pdf - PDF files ### .*.pdf - PDF files
### .pdb - PDB files ### .*.pdb - PDB files
my_wel="\\\.pdf \\\.pdb" ### ^doc/html/.* - Everything in html/ is generated
my_wel=".*\\\.pdf .*\\\.pdb ^doc/html/.*"
# check for right version of git # check for right version of git
...@@ -100,7 +101,7 @@ echo "[ Checking for trailing whitespaces ]" ...@@ -100,7 +101,7 @@ echo "[ Checking for trailing whitespaces ]"
my_rexp= my_rexp=
for i in $my_wel for i in $my_wel
do do
my_rexp="${my_rexp}|.*${i}:[[:digit:]]+:" my_rexp="${my_rexp}|${i}:[[:digit:]]+:"
done done
if git rev-parse --verify HEAD 2>&1 > /dev/null; then if git rev-parse --verify HEAD 2>&1 > /dev/null; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment