From: Guido van Rossum Date: Tue, 5 May 1998 20:40:18 +0000 (+0000) Subject: Avoid using cut; sed can do this just as well... X-Git-Tag: v1.5.2a1~757 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a58153e8bfb0f6a20403e487d499ee913d51d679;p=thirdparty%2FPython%2Fcpython.git Avoid using cut; sed can do this just as well... --- diff --git a/Makefile.in b/Makefile.in index 8b2c97995bcd..f4f80ae28dc0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -389,7 +389,7 @@ libainstall: all $(INSTALL_PROGRAM) $(srcdir)/install-sh $(LIBPL)/install-sh $(INSTALL_DATA) $(srcdir)/Misc/Makefile.pre.in $(LIBPL)/Makefile.pre.in @if [ -s Modules/python.exp -a \ - "`echo $(MACHDEP) | cut -c 1-3`" = "aix" ]; then \ + "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \ echo; echo "Installing support files for building shared extension modules on AIX:"; \ $(INSTALL_DATA) Modules/python.exp \ $(LIBPL)/python.exp; \