fix trailblank and sort .gitignore

This commit is contained in:
Landon Curt Noll
2024-07-11 22:42:37 -07:00
parent 2a4f399593
commit 56153d6615
2 changed files with 39 additions and 10 deletions

16
.gitignore vendored
View File

@@ -4,8 +4,8 @@
# #
*~ *~
*.BAK *.BAK
.DS_Store
core* core*
.DS_Store
*.dSYM/ *.dSYM/
*.exe *.exe
*.[oa] *.[oa]
@@ -16,13 +16,11 @@ core*
# files and directories created during the building of calc and other Makefile actions # files and directories created during the building of calc and other Makefile actions
# #
# NOTE: While many of these might be part of a released calc tarball, they are # NOTE: While many of these might be part of a released calc tarball, they are
# not consider development source. Some other file(s) and/or programs # not consider development source. Some other file(s) and/or programs
# generate these files. # generate these files.
# #
# We sort the list below via: sort -d -u # We sort the list below via: sort -d -u
# #
Makefile.our
NOTES
align32 align32
align32.h align32.h
align32_tmp align32_tmp
@@ -42,13 +40,13 @@ chk_c
conf.h conf.h
const_tmp const_tmp
cscript/4dsphere cscript/4dsphere
cscript/README
cscript/.all cscript/.all
cscript/fproduct cscript/fproduct
cscript/mersenne cscript/mersenne
cscript/piforever cscript/piforever
cscript/plus cscript/plus
cscript/powerterm cscript/powerterm
cscript/README
cscript/simple cscript/simple
cscript/square cscript/square
custom/.all custom/.all
@@ -128,8 +126,6 @@ have_urandom.h
have_ustat have_ustat
have_ustat.h have_ustat.h
have_varvs have_varvs
help/COPYING
help/COPYING-LGPL
help/.all help/.all
help/binding help/binding
help/bindings help/bindings
@@ -140,6 +136,8 @@ help/change
help/changes help/changes
help/contrib help/contrib
help/copy help/copy
help/COPYING
help/COPYING-LGPL
help/cscript help/cscript
help/custom_cal help/custom_cal
help/errorcode help/errorcode
@@ -163,8 +161,10 @@ libcustcalc.*
ll_tmp ll_tmp
longbits longbits
longbits.h longbits.h
Makefile.our
memmv_tmp memmv_tmp
newstr_tmp newstr_tmp
NOTES
offscl_tmp offscl_tmp
outfile outfile
posscl_tmp posscl_tmp

View File

@@ -182,8 +182,8 @@ PICKY_PHASE_1=$(
-name '.git' -o -path './custom/libcustcalc*' -o -path './libcustcalc*' -o \ -name '.git' -o -path './custom/libcustcalc*' -o -path './libcustcalc*' -o \
-name 'sample_many-static' -o -name 'sample_rand-static' -o \ -name 'sample_many-static' -o -name 'sample_rand-static' -o \
-name 'codeql-analysis.yml' -o -name tags -o -name '*.out' -o \ -name 'codeql-analysis.yml' -o -name tags -o -name '*.out' -o \
-name '?' -o -iname '*foo*' -o -iname '*bar*' -o -iname '*baz*' -o \ -iname '*foo*' -o -iname '*bar*' -o -iname '*baz*' -o \
-iname '*curds*' -o -iname '*whey*' -o -iname '*rmme*' \ -name '.lldbinit' -o -iname '*curds*' -o -iname '*whey*' -o -iname '*rmme*' \
\) -prune -o -type f -print0 | \ \) -prune -o -type f -print0 | \
if [[ -x /usr/local/bin/picky ]]; then if [[ -x /usr/local/bin/picky ]]; then
xargs -0 /usr/local/bin/picky -s -v -w132 xargs -0 /usr/local/bin/picky -s -v -w132
@@ -218,6 +218,35 @@ if [[ -n $BACKUP_MAKEILES ]]; then
EXIT_CODE=7 EXIT_CODE=7
fi fi
# look for ASCII tabs in non-Makefiles
#
TABS_FOUND=$(
find . \( -path './NOTES' -o -path './calc' -o -path './ver_calc' -o \
-name '*.o' -o -name '*.a' -o -name '*ptch*' -o -name 'core*' -o \
-name '*.orig' -o -name '*.rej' -o -name '*.bak' -o \
-name '*.ptch' -o -name 'core.*' -o \
-name '*.so*' -o -name 'calc-static' -o -name 'libcalc.*' -o \
-name 'sample_many' -o -name 'sample_rand' -o -name 'errcode' -o \
-path './help/funclist' -o -path './have_stdvs' -o \
-path './endian' -o -path './no_implicit' -o -name 'chk_c' -o \
-path './longbits' -o -name '.*.swp' -o -name 'conf.h' -o \
-name '.git' -o -path './custom/libcustcalc*' -o -path './libcustcalc*' -o \
-name 'sample_many-static' -o -name 'sample_rand-static' -o \
-name 'codeql-analysis.yml' -o -name tags -o -name '*.out' -o \
-iname '*foo*' -o -iname '*bar*' -o -iname '*baz*' -o \
-name '.lldbinit' -o -iname '*curds*' -o -iname '*whey*' -o -iname '*rmme*' -o \
-iname 'Makefile*' -o -name rpm.mk -o -name 'trailblank' \
\) -prune -o -type f -print0 | \
xargs -0 grep -l -E ' '
)
if [[ -n $TABS_FOUND ]]; then
echo
echo '# ASCII TABs found in non-Makefiles:'
echo "$TABS_FOUND"
EXIT_CODE=8
fi
# All Done!!! -- Jessica Noll, Age 2 # All Done!!! -- Jessica Noll, Age 2
# #
exit "$EXIT_CODE" exit "$EXIT_CODE"