#!/bin/sh dest=`basename $1 .in` if test -r $dest; then mv -f $dest $dest.bak fi sed \ -e 's?@gnumake@?make?g' \ -e 's?@gnutar@?tar?g' \ -e 's?@awk@?/bin/awk?g' \ -e 's?@cc@?gcc?g' \ -e 's?@cflags@?-g -O3 -D__MATH_INLINES -funroll-loops -pipe -Df2cFortran -Wall -Wno-unused -Wno-switch -Wno-trigraphs -DCERN_Y2K_FIX -Wno-main?g' \ -e 's?@ldflags@??g' \ -e 's?@f77@?g77?g' \ -e 's?@fflags@?-g -O -fno-automatic -fno-second-underscore -ffixed-line-length-none -funroll-loops -Wall -Wno-unused?g' \ -e 's?@lfflags@?-Wl,-uMAIN__?g' \ -e 's?@forlibs@? -lfrtbegin -lg2c -lm -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../.. -lm -lgcc_s?g' \ -e 's?@wbrlibs@?-lonline?g' \ -e 's?@gsllibdir@??g' \ -e 's?@gslincdir@??g' \ -e 's?@extralibs@? -u trapfpe -lfpe -lcrypt -lnsl -ldl?g' \ -e 's?@extraincs@?-I/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include?g' \ -e 's?@motiflibs@??g' \ -e 's?@x11libs@?-L/usr/X11R6/lib -lX11?g' \ -e 's?@machine_type@?UNIX?g' \ -e 's?@udst_version@??g' \ -e 's?@hermes_top@?/hermes?g' \ -e 's?@hermes_root@?/hermes/r26?g' \ -e 's?@cern_root@?/cern/2005?g' \ -e 's?@std_include_path@?-I/hermes/include -I/hermes/r26/include?g' \ -e 's?@std_library_path@?-L/hermes/r26/lib -L/hermes/lib -L/cern/2005/lib?g' \ -e 's?@ranlib@?ranlib?g' \ -e 's?@makedepend@?makedepend?g' \ -e 's?@byteorder@??g' \ -e 's?@root@?/hermes/r26/hanna?g' \ -e 's?@ext_lapack@?-llapack3 -lblas?g' \ -e 's?@hannalib@?/hermes/r26/hanna/lib/libhanna.a?g' \ -e 's?@targets@?hannah hannam?g' \ -e 's?@g1ddl@??g' \ < $1 > $dest