From accb338fb7140b214f34e6e6a889f9ef6f9c080e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 21 Apr 2003 15:06:29 +0000 Subject: [PATCH] * lib/mkinstalldirs: Remove each sequence of spaces before a TAB character. * lib/depcomp: Search for TAB-SPC, not SPC-TAB. --- lib/depcomp | 4 ++-- lib/mkinstalldirs | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/depcomp b/lib/depcomp index 51606f8c4..6ee57a624 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -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 diff --git a/lib/mkinstalldirs b/lib/mkinstalldirs index d2d5f21b6..e26e71490 100755 --- a/lib/mkinstalldirs +++ b/lib/mkinstalldirs @@ -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 -- 2.47.2