automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: removing unnecessary SPC bytes before TABs


From: Jim Meyering
Subject: FYI: removing unnecessary SPC bytes before TABs
Date: Mon, 21 Apr 2003 17:05:43 +0200

Very minor clean-up.
This is sort of like trailing white space.
I'm putting this on the trunk.

2003-04-21  Jim Meyering  <address@hidden>

        * lib/mkinstalldirs: Remove each sequence of spaces before a
        TAB character.
        * lib/depcomp: Search for TAB-SPC, not SPC-TAB.

Index: lib/depcomp
===================================================================
RCS file: /cvs/automake/automake/lib/depcomp,v
retrieving revision 1.41
diff -u -p -r1.41 depcomp
--- lib/depcomp 18 Feb 2003 23:28:42 -0000      1.41
+++ lib/depcomp 21 Apr 2003 15:03:26 -0000
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 # depcomp - compile a program generating dependencies as side-effects
-# Copyright 1999, 2000 Free Software Foundation, Inc.
+# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -271,7 +271,7 @@ tru64)
    if test -f "$tmpdepfile"; then
       sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
       # That's a space and a tab in the [].
-      sed -e 's,^.*\.[a-z]*:[  ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+      sed -e 's,^.*\.[a-z]*:[   ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
    else
       echo "#dummy" > "$depfile"
    fi
Index: lib/mkinstalldirs
===================================================================
RCS file: /cvs/automake/automake/lib/mkinstalldirs,v
retrieving revision 1.11
diff -u -p -r1.11 mkinstalldirs
--- lib/mkinstalldirs   27 Sep 2002 19:59:24 -0000      1.11
+++ lib/mkinstalldirs   21 Apr 2003 15:03:26 -0000
@@ -84,17 +84,17 @@ do
       mkdir "$pathcomp" || lasterr=$?
 
       if test ! -d "$pathcomp"; then
-       errstatus=$lasterr
+       errstatus=$lasterr
       else
-       if test ! -z "$dirmode"; then
+       if test ! -z "$dirmode"; then
          echo "chmod $dirmode $pathcomp"
-         lasterr=""
-         chmod "$dirmode" "$pathcomp" || lasterr=$?
+         lasterr=""
+         chmod "$dirmode" "$pathcomp" || lasterr=$?
 
-         if test ! -z "$lasterr"; then
-           errstatus=$lasterr
-         fi
-       fi
+         if test ! -z "$lasterr"; then
+           errstatus=$lasterr
+         fi
+       fi
       fi
     fi
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]