1# $Id: makefile,v 1.208 1998/03/05 22:31:08 balay Exp balay $ 2# 3# This is the makefile for installing PETSc. See the file 4# Installation for directions on installing PETSc. 5# See also bmake/common for additional commands. 6# 7 8CFLAGS = 9SOURCEC = 10SOURCEF = 11DOCS = maint/addlinks maint/builddist \ 12 maint/buildlinks maint/wwwman maint/xclude maint/crontab\ 13 bmake/common bmake/*/base* maint/autoftp docs/manualpages/sec/* \ 14 include/finclude/generateincludes bin/petscviewinfo.text \ 15 bin/petscoptsinfo.text 16OBJSC = 17OBJSF = 18LIBBASE = libpetscvec 19DIRS = src include docs 20 21include $(PETSC_DIR)/bmake/$(PETSC_ARCH)/base 22 23# 24# Prints information about the system and PETSc being compiled 25# 26info: 27 -@echo "==========================================" 28 -@echo On `date` on `hostname` 29 -@echo Machine characteristics: `uname -a` 30 -@echo "-----------------------------------------" 31 -@echo "Using C compiler: $(CC) $(COPTFLAGS)" 32 -@if [ -n "$(CCV)" -a "$(CCV)" != "unknown" ] ; then \ 33 echo "Compiler version:" `$(CCV)` ; fi 34 -@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)" 35 -@echo "-----------------------------------------" 36 -@grep PETSC_VERSION_NUMBER include/petsc.h | sed "s/........//" 37 -@echo "-----------------------------------------" 38 -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 39 -@echo "-----------------------------------------" 40 -@echo "Using configuration flags: $(CONF)" 41 -@echo "-----------------------------------------" 42 -@echo "Using include paths: $(PETSC_INCLUDE)" 43 -@echo "-----------------------------------------" 44 -@echo "Using PETSc directory: $(PETSC_DIR)" 45 -@echo "Using PETSc arch: $(PETSC_ARCH)" 46 -@echo "------------------------------------------" 47 -@echo "Using C linker: $(CLINKER)" 48 -@echo "Using libraries: $(PETSC_LIB)" 49 -@echo "Using Fortran linker: $(FLINKER)" 50 -@echo "Using Fortran libraries: $(PETSC_FORTRAN_LIB)" 51 -@echo "==========================================" 52 53# Builds PETSc libraries for a given BOPT and architecture 54all: info chkpetsc_dir deletelibs build_kernels build_c build_shared build_fortran 55 56build_c: 57 -@echo "BEGINNING TO COMPILE LIBRARIES IN ALL DIRECTORIES" 58 -@echo "=========================================" 59 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 60 ACTION=libfast tree 61 -@cd $(PETSC_DIR)/src/sys/src ; \ 62 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) rs6000_time 63 $(RANLIB) $(PDIR)/*.a 64 -@chmod g+w $(PDIR)/*.a 65 -@echo "Completed building libraries" 66 -@echo "=========================================" 67 68# Builds PETSc test examples for a given BOPT and architecture 69testexamples: info chkopts 70 -@echo "BEGINNING TO COMPILE AND RUN TEST EXAMPLES" 71 -@echo "Due to different numerical round-off on certain" 72 -@echo "machines some of the numbers may not match exactly." 73 -@echo "=========================================" 74 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 75 ACTION=testexamples_1 tree 76 -@echo "Completed compiling and running test examples" 77 -@echo "=========================================" 78 79# Builds PETSc test examples for a given BOPT and architecture 80testexamples_uni: info chkopts 81 -@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR EXAMPLES" 82 -@echo "Due to different numerical round-off on certain" 83 -@echo "machines some of the numbers may not match exactly." 84 -@echo "=========================================" 85 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 86 ACTION=testexamples_4 tree 87 -@echo "Completed compiling and running uniprocessor test examples" 88 -@echo "=========================================" 89 90# 91# Builds PETSc Fortran interface libary 92# Note: libfast cannot run on .F files on certain machines, so we 93# use lib and check for errors here. 94fortran: info chkpetsc_dir build_fortran 95 96build_fortran: 97 -@echo "BEGINNING TO COMPILE FORTRAN INTERFACE LIBRARY" 98 -@echo "=========================================" 99 -$(RM) -f $(PDIR)/libpetscfortran.* 100 -@cd src/fortran/auto; \ 101 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast 102 -@cd src/fortran/custom; \ 103 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 104 grep -v clog trashz | grep -v "information sections" | \ 105 egrep -i '(Error|warning|Can)' >> /dev/null;\ 106 if [ "$$?" != 1 ]; then \ 107 cat trashz ; fi; $(RM) trashz 108 $(RANLIB) $(PDIR)/libpetscfortran.a 109 -@chmod g+w $(PDIR)/*.a 110 -@echo "Completed compiling Fortran interface library" 111 -@echo "=========================================" 112 113# 114# Builds PETSc Fortran kernels; some numerical kernels have 115# a Fortran version that may give better performance on certain 116# machines. These always provide better performance for complex numbers. 117fortrankernels: info chkpetsc_dir 118 -$(RM) -f $(PDIR)/libpetsckernels.* 119 -@echo "BEGINNING TO COMPILE FORTRAN KERNELS LIBRARY" 120 -@echo "=========================================" 121 -@cd src/fortran/kernels; \ 122 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib 123 -@chmod g+w $(PDIR)/*.a 124 -@echo "Completed compiling Fortran kernels library" 125 -@echo "=========================================" 126 127# Builds PETSc test examples for a given BOPT and architecture 128testfortran: info chkopts 129 -@echo "BEGINNING TO COMPILE AND RUN FORTRAN TEST EXAMPLES" 130 -@echo "=========================================" 131 -@echo "Due to different numerical round-off on certain" 132 -@echo "machines or the way Fortran formats numbers" 133 -@echo "some of the results may not match exactly." 134 -@echo "=========================================" 135 -@echo "On some machines you may get messages of the form" 136 -@echo "PetscScalarAddressToFortran:C and Fortran arrays are" 137 -@echo "not commonly aligned or are too far apart to be indexed" 138 -@echo "by an integer. Locations: C xxxc Fortran xxxf" 139 -@echo "Locations/sizeof(Scalar): C yyc Fortran yyf" 140 -@echo "This indicates that you may not be able to use the" 141 -@echo "PETSc routines VecGetArray() and MatGetArray() from Fortran" 142 -@echo "=========================================" 143 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \ 144 ACTION=testexamples_3 tree 145 -@echo "Completed compiling and running Fortran test examples" 146 -@echo "=========================================" 147# 148# Builds PETSc Fortran90 interface libary 149# Note: libfast cannot run on .F files on certain machines, so we 150# use lib and check for errors here. 151# Note: F90 interface currently only supported in NAG F90 compiler 152fortran90: info chkpetsc_dir fortran 153 -@echo "BEGINNING TO COMPILE FORTRAN90 INTERFACE LIBRARY" 154 -@echo "=========================================" 155 -@cd src/fortran/f90; \ 156 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 157 grep -v clog trashz | grep -v "information sections" | \ 158 egrep -i '(Error|warning|Can)' >> /dev/null;\ 159 if [ "$$?" != 1 ]; then \ 160 cat trashz ; fi; $(RM) trashz 161 $(RANLIB) $(PDIR)/libpetscfortran.a 162 -@chmod g+w $(PDIR)/*.a 163 -@echo "Completed compiling Fortran90 interface library" 164 -@echo "=========================================" 165 166# Builds noise routines (not yet publically available) 167# Note: libfast cannot run on .F files on certain machines, so we 168# use lib and check for errors here. 169noise: info chkpetsc_dir 170 -@echo "Beginning to compile noise routines" 171 -@echo "=========================================" 172 -@cd src/snes/interface/noise; \ 173 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \ 174 grep -v clog trashz | grep -v "information sections" | \ 175 egrep -i '(Error|warning|Can)' >> /dev/null;\ 176 if [ "$$?" != 1 ]; then \ 177 cat trashz ; fi; $(RM) trashz 178 $(RANLIB) $(PDIR)/libpetscsnes.a 179 -@chmod g+w $(PDIR)/libpetscsnes.a 180 -@echo "Completed compiling noise routines" 181 -@echo "=========================================" 182 183petscblas: info chkpetsc_dir 184 -$(RM) -f $(PDIR)/libpetscblas.* 185 -@echo "BEGINNING TO COMPILE C VERSION OF BLAS AND LAPACK" 186 -@echo "=========================================" 187 -@cd src/adic/blas; \ 188 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast 189 -@cd src/adic/lapack; \ 190 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=libfast tree 191 $(RANLIB) $(PDIR)/libpetscblas.a 192 -@chmod g+w $(PDIR)/*.a 193 -@echo "Completed compiling C version of BLAS and LAPACK" 194 -@echo "=========================================" 195# If USE_DYNAMIC_LIBRARIES flag is set, use shared libs 196build_shared: 197 -@shared_var=`echo "$(PETSCFLAGS)" | sed 's/-DUSE_DYNAMIC_LIBRARIES//g'`; \ 198 if [ "$(PETSCFLAGS)" != "$$shared_var" ] ; then \ 199 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) shared; fi 200 201# If fortrankernels are used, build them. 202build_kernels: 203 -@kernel_var=`echo "$(PETSCFLAGS)" | sed 's/-DUSE_FORTRAN_KERNELS//g'`; \ 204 if [ "$(PETSCFLAGS)" != "$$kernel_var" ] ; then \ 205 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) fortrankernels; fi 206 207 208#build_kernels: 209# -@if [ "$(KERNEL_LIB)" != "" ] ; then \ 210# $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) fortrankernels; fi 211 212# Ranlib on the libraries 213ranlib: 214 $(RANLIB) $(PDIR)/*.a 215 216# Deletes PETSc libraries 217deletelibs: chkopts_basic 218 -$(RM) -f $(PDIR)/* 219 220# Deletes man pages (HTML version) 221deletemanualpages: 222 $(RM) -f $(PETSC_DIR)/docs/manualpages/man*/* $(PETSC_DIR)/docs/manualpages/www.cit \ 223 $(PETSC_DIR)/docs/manualpages/man*.html 224 225# Deletes man pages (LaTeX version) 226deletelatexpages: 227 $(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex 228 229# To access the tags in EMACS, type M-x visit-tags-table and specify 230# the file petsc/TAGS. 231# 1) To move to where a PETSc function is defined, enter M-. and the 232# function name. 233# 2) To search for a string and move to the first occurrence, 234# use M-x tags-search and the string. 235# To locate later occurrences, use M-, 236 237TAGS_INCLUDE_FILES = include/*.h include/pinclude/*.h include/FINCLUDE/*.h 238TAGS_BMAKE_FILES = bmake/common bmake/*/base* 239TAGS_EXAMPLE_FILES = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \ 240 src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f] 241TAGS_DOC_FILES = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \ 242 docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \ 243 docs/tex/manual/part1.tex docs/tex/manual/part2.tex 244TAGS_SRC_FILES = src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \ 245 src/*/utils/*.[c,h] \ 246 src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \ 247 src/gvec/impls/*/*/*/*/*.[c,h] src/contrib/*/*.[c,h] \ 248 src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F] \ 249 src/fortran/f90/*.[c,h,F] src/fortran/kernels/*.[c,h,F] 250TAGS_MAKEFILE_FILES = include/makefile include/*/makefile \ 251 makefile \ 252 src/makefile src/*/makefile src/*/src/makefile \ 253 src/*/interface/makefile \ 254 src/*/utils/makefile \ 255 src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \ 256 src/*/examples/makefile src/*/examples/*/makefile src/*/examples/*/*/makefile \ 257 src/gvec/impls/*/*/*/*/makefile src/gvec/impls/*/*/*/makefile \ 258 src/fortran/*/makefile \ 259 src/contrib/*/makefile src/contrib/*/src/makefile \ 260 src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \ 261 docs/makefile 262 263# Builds all etags files 264alletags: 265 -make etags_complete 266 -make etags 267 -make etags_noexamples 268 -make etags_makefiles 269 270# Builds the basic etags file. This should be employed by most users. 271etags: 272 $(RM) TAGS 273 etags -f TAGS $(TAGS_INCLUDE_FILES) 274 etags -a -f TAGS $(TAGS_SRC_FILES) 275 etags -a -f TAGS $(TAGS_EXAMPLE_FILES) 276 etags -a -f TAGS $(TAGS_MAKEFILE_FILES) 277 etags -a -f TAGS $(TAGS_BMAKE_FILES) 278 chmod g+w TAGS 279 280# Builds complete etags list; only for PETSc developers. 281etags_complete: 282 $(RM) TAGS_COMPLETE 283 etags -f TAGS_COMPLETE $(TAGS_SRC_FILES) 284 etags -a -f TAGS_COMPLETE $(TAGS_INCLUDE_FILES) 285 etags -a -f TAGS_COMPLETE $(TAGS_EXAMPLE_FILES) 286 etags -a -f TAGS_COMPLETE $(TAGS_MAKEFILE_FILES) 287 etags -a -f TAGS_COMPLETE $(TAGS_BMAKE_FILES) 288 etags -a -f TAGS_COMPLETE $(TAGS_DOC_FILES) 289 chmod g+w TAGS_COMPLETE 290 291# Builds the etags file that excludes the examples directories 292etags_noexamples: 293 $(RM) TAGS_NO_EXAMPLES 294 etags -f TAGS_NO_EXAMPLES $(TAGS_SRC_FILES) 295 etags -a -f TAGS_NO_EXAMPLES $(TAGS_INCLUDE_FILES) 296 etags -a -f TAGS_NO_EXAMPLES $(TAGS_MAKEFILE_FILES) 297 etags -a -f TAGS_NO_EXAMPLES $(TAGS_BMAKE_FILES) 298 etags -a -f TAGS_NO_EXAMPLES $(TAGS_DOC_FILES) 299 chmod g+w TAGS_NO_EXAMPLES 300 301# Builds the etags file for makefiles 302etags_makefiles: 303 $(RM) TAGS_MAKEFILES 304 etags -f TAGS_MAKEFILES $(TAGS_MAKEFILE_FILES) 305 etags -a -f TAGS_MAKEFILES $(TAGS_BMAKE_FILES) 306 chmod g+w TAGS_MAKEFILES 307 308# Builds the etags file for examples 309etags_examples: 310 $(RM) TAGS_EXAMPLES 311 etags -f TAGS_EXAMPLES $(TAGS_EXAMPLE_FILES) 312 chmod g+w TAGS_EXAMPLES 313 314# 315# To use the tags file from VI do the following: 316# 1. within vi invoke the command - :set tags=/home/bsmith/petsc/tags 317# or add the command to your ~/.exrc file - set tags=/home/bsmith/petsc/tags 318# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate 319# 320ctags: 321 $(RM) tags 322 ctags -w -f tags $(TAGS_INCLUDE_FILES) 323 ctags -w -a -f tags $(TAGS_SRC_FILES) 324 ctags -w -a -f tags $(TAGS_EXAMPLE_FILES) 325 ctags -w -a -f tags $(TAGS_MAKEFILE_FILES) 326 ctags -w -a -f tags $(TAGS_BMAKE_FILES) 327 chmod g+w tags 328 329# ------------------------------------------------------------------ 330# 331# All remaining actions are intended for PETSc developers only. 332# PETSc users should not generally need to use these commands. 333# 334 335# Builds all versions of the man pages 336allmanpages: allmanualpages alllatexpages 337allmanualpages: deletemanualpages 338 -make ACTION=manualpages_buildcite tree 339 -cd src/fortran/custom; make manualpages_buildcite 340 -cd src/fortran/custom; make manualpages 341 -make ACTION=manualpages tree 342 -maint/wwwman 343 -maint/examplesindex.tcl 344 -maint/htmlkeywords.tcl 345 -@chmod g+w docs/manualpages/man*/* 346 347alllatexpages: deletelatexpages 348 -make ACTION=latexpages tree 349 -cd src/fortran/custom; make latexpages 350 -@chmod g+w docs/tex/rsum/* 351 352# Builds Fortran stub files 353allfortranstubs: 354 -@include/finclude/generateincludes 355 -@$(RM) -f src/fortran/auto/*.c 356 -make ACTION=fortranstubs tree 357 chmod g+w src/fortran/auto/*.c 358 359allci: 360 -@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) ci 361 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=ci tree 362 363allco: 364 -@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) co 365 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=co tree 366 367# 368# The commands below are for generating ADIC versions of the code; 369# they are not currently used. 370# 371CFLAGS = $(CPPFLAGS) $(CONF) 372alladicignore: 373 -@$(RM) $(PDIR)/adicignore 374 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adicignore tree 375 376alladic: 377 -@echo "Beginning to compile ADIC source code in all directories" 378 -@echo "Using ADIC compiler: $(ADIC_CC) $(CFLAGS)" 379 -@echo "=========================================" 380 -@cd include ; \ 381 $(ADIC_CC) -s -f 1 $(CFLAGS) petsc.h 382 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adic tree 383 -@cd src/inline ; \ 384 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 385 -@cd src/adic/blas ; \ 386 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic 387 -@cd src/adic/lapack ; \ 388 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adic tree 389 390alladiclib: 391 -@echo "Beginning to compile ADIC libraries in all directories" 392 -@echo "Using compiler: $(CC) $(COPTFLAGS)" 393 -@echo "-----------------------------------------" 394 -@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)" 395 -@echo "-----------------------------------------" 396 -@echo "Using configuration flags: $(CONF)" 397 -@echo "-----------------------------------------" 398 -@echo "Using include paths: $(PETSC_INCLUDE)" 399 -@echo "-----------------------------------------" 400 -@echo "Using PETSc directory: $(PETSC_DIR)" 401 -@echo "Using PETSc arch: $(PETSC_ARCH)" 402 -@echo "=========================================" 403 -@$(RM) -f $(PDIR)/*adic.a 404 -@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adiclib tree 405 -@cd src/adic/blas ; \ 406 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adiclib 407 -@cd src/adic/lapack ; \ 408 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adiclib tree 409 -@cd src/adic/src ; \ 410 $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib 411 412# ------------------------------------------------------------------------------- 413# 414# Some macros to check if the fortran interface is up-to-date. 415# 416countfortranfunctions: 417 -@cd $(PETSC_DIR)/src/fortran; egrep '^void' custom/*.c auto/*.c | \ 418 cut -d'(' -f1 | tr -s '' ' ' | cut -d' ' -f2 | uniq | egrep -v "(^$$|Petsc)" | \ 419 sed "s/_$$//" | sort > /tmp/countfortranfunctions 420 421countcfunctions: 422 -@ grep extern $(PETSC_DIR)/include/*.h *.h | grep "(" | tr -s '' ' ' | \ 423 cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '' '\012' | \ 424 tr 'A-Z' 'a-z' | sort > /tmp/countcfunctions 425 426difffortranfunctions: countfortranfunctions countcfunctions 427 -@echo -------------- Functions missing in the fortran interface --------------------- 428 -@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2 429 -@echo ----------------- Functions missing in the C interface ------------------------ 430 -@diff /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2 431 -@$(RM) /tmp/countcfunctions /tmp/countfortranfunctions 432 433checkbadfortranstubs: 434 -@echo "=========================================" 435 -@echo "Functions with MPI_Comm as an Argument" 436 -@echo "=========================================" 437 -@cd $(PETSC_DIR)/src/fortran/auto; grep '^void' *.c | grep 'MPI_Comm' | \ 438 tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 439 -@echo "=========================================" 440 -@echo "Functions with a String as an Argument" 441 -@echo "=========================================" 442 -@cd $(PETSC_DIR)/src/fortran/auto; grep '^void' *.c | grep 'char \*' | \ 443 tr -s '' ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3 444 -@echo "=========================================" 445 -@echo "Functions with Pointers to PETSc Objects as Argument" 446 -@echo "=========================================" 447 -@cd $(PETSC_DIR)/src/fortran/auto; \ 448 _p_OBJ=`grep _p_ $(PETSC_DIR)/include/*.h | tr -s '' ' ' | \ 449 cut -d' ' -f 3 | tr -s '' '\012' | grep -v '{' | cut -d'*' -f1 | \ 450 sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \ 451 for OBJ in $$_p_OBJ; do \ 452 grep "$$OBJ \*" *.c | tr -s '' ' ' | tr -s ':' ' ' | \ 453 cut -d'(' -f1 | cut -d' ' -f1,3; \ 454 done 455