]> granicus.if.org Git - python/commitdiff
Avoid using cut; sed can do this just as well...
authorGuido van Rossum <guido@python.org>
Tue, 5 May 1998 20:40:18 +0000 (20:40 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 5 May 1998 20:40:18 +0000 (20:40 +0000)
Makefile.in

index 8b2c97995bcdd30a25371e62965bb458be0cb953..f4f80ae28dc09d30035932bb9abaf2a6c9b6e67b 100644 (file)
@@ -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;            \