STYLE: Remove trailing whitespace in MISC files
authorHans Johnson <hans-johnson@uiowa.edu>
Sat, 9 Jul 2016 16:18:08 +0000 (11:18 -0500)
committerHans Johnson <hans-johnson@uiowa.edu>
Sat, 9 Jul 2016 16:19:33 +0000 (11:19 -0500)
commit9c7f84bd600f53c59f89f16ad745e3be5cab2f07
treececbca4ae14e2eff829cfd9627c83237d2f339b6
parent78d32fd2a6d030d388981f096014c764ff7898f5
STYLE: Remove trailing whitespace in MISC files

This is mostly a long term maintenance improvement.

Many coding styles require elimination of trailing whitespace, and
many editors and source code management configurations automatically
gobble up whitespace. When these tools gobble up whitespace, it
complicates reviewing the meaningful code changes.

By removing whitespace on one patch, it makes future
code reviews much easier.

=SCRIPT====================================================================

if which tempfile &>/dev/null; then
  TEMPMAKER=tempfile
elif which mktemp &>/dev/null; then
  TEMPMAKER=mktemp
else
  echo "Cannot find tempfile program." 2>&1
  exit 1
fi

MYTEMP=$($TEMPMAKER)
trap 'rm -f $MYTEMP' SIGINT SIGTERM

stripit() {
  echo "stripping $1"
  sed 's/[ \t]*$//' "$1" > $MYTEMP
  cp $MYTEMP "$1"
}

if [ $# -gt 0 ]; then
  while [ "$1" != "" ]; do
    stripit $1
    shift
  done
else
  while read -t 2; do
    stripit $REPLY
  done
fi

rm $MYTEMP
=================================================
65 files changed:
BLAS/SRC/Makefile
BLAS/TESTING/Makeblat1
BLAS/TESTING/Makeblat2
BLAS/TESTING/Makeblat3
CBLAS/Makefile
CBLAS/Makefile.in
CBLAS/README
CBLAS/cmake/tmp.jIUCyIMYeG [new file with mode: 0644]
CBLAS/examples/Makefile
CBLAS/src/Makefile
CBLAS/testing/Makefile
CMAKE/tmp.kXjd1oSjcp [new file with mode: 0644]
DOCS/Doxyfile
DOCS/Doxyfile_man
DOCS/lawn81.tex
INSTALL/Makefile
INSTALL/make.inc.ALPHA
INSTALL/make.inc.HPPA
INSTALL/make.inc.IRIX64
INSTALL/make.inc.O2K
INSTALL/make.inc.SGI5
INSTALL/make.inc.SUN4
INSTALL/make.inc.SUN4SOL2
INSTALL/make.inc.XLF
INSTALL/make.inc.gfortran
INSTALL/make.inc.gfortran_debug
INSTALL/make.inc.ifort
INSTALL/make.inc.pgf95
INSTALL/make.inc.pghpf
LAPACKE/Makefile
LAPACKE/README
LAPACKE/cmake/tmp.dnyp4S2eiM [new file with mode: 0644]
LAPACKE/example/Makefile
LAPACKE/src/Makefile
Makefile
README
SRC/Makefile
SRC/VARIANTS/Makefile
SRC/VARIANTS/README
TESTING/LIN/Makefile
TESTING/MATGEN/Makefile
TESTING/cbak.in
TESTING/cbal.in
TESTING/ced.in
TESTING/cgbak.in
TESTING/cgbal.in
TESTING/cgd.in
TESTING/dbak.in
TESTING/dbal.in
TESTING/dgbak.in
TESTING/dgd.in
TESTING/glm.in
TESTING/gqr.in
TESTING/lse.in
TESTING/sbak.in
TESTING/sbal.in
TESTING/sgbak.in
TESTING/sgd.in
TESTING/zbak.in
TESTING/zbal.in
TESTING/zed.in
TESTING/zgbak.in
TESTING/zgbal.in
TESTING/zgd.in
make.inc.example