[Wien] WIEN2k Version 19.1

Gavin Abo gsabo at crimson.ua.edu
Fri Jun 14 10:46:47 CEST 2019


FYI, it looks like the string cannot go much longer than from "sed -e 
"s^_FOPT_^$FOPT^" < Makefile.orig" to "sed -e "s^_ELPA_LIB_^$ELPA_LIB^"".

If you can split the string in half over two alias, then that would 
likely allow csh to work on Ubuntu 18.04.2 just fine:

username at computername:~/Desktop/test$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:    bionic
username at computername:~/Desktop/test$ dpkg -l csh
Desired=Unknown/Install/Remove/Purge/Hold
| 
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  csh            20110502-3   amd64        Shell with C-like syntax

username at computername:~/Desktop/test$ cat test
#!/bin/csh -f
alias update_makefiles 'sed -e "s^_FOPT_^$FOPT^" < Makefile.orig |\\
  sed -e "s^_FOPT_^$FOPT^" |\\
  sed -e "s^_FPOPT_^$FPOPT^" |\\
  sed -e "s^_OMP_SWITCH_^$OMP_SWITCH^" |\\
  sed -e "s^_LDFLAGS_^$LDFLAGS^" |\\
  sed -e "s^_DPARALLEL_^$DPARALLEL^" |\\
  sed -e "s^_R_LIBS_^$R_LIBS^" |\\
  sed -e "s^_RP_LIBS_^$RP_LIBS^" |\\
  sed -e "s^_SCALAPACKROOT_^$SCALAPACKROOT^" |\\
  sed -e "s^_SCALAPACK_LIBNAME_^$SCALAPACK_LIBNAME^" |\\
  sed -e "s^_BLACSROOT_^$BLACSROOT^" |\\
  sed -e "s^_BLACS_LIBNAME_^$BLACS_LIBNAME^" |\\
  sed -e "s^_MKL_TARGET_ARCH_^$MKL_TARGET_ARCH^" |\\
  sed -e "s^_LIBXCROOT_^$LIBXCROOT^" |\\
  sed -e "s^_LIBXC_LIBNAME_^$LIBXC_LIBNAME^" |\\
  sed -e "s^_LIBXC_LIBDNAME_^$LIBXC_LIBDNAME^" |\\
  sed -e "s^_LIBXC_FORTRAN_^$LIBXC_FORTRAN^" |\\
  sed -e "s^_FFTW_VERSION_^$FFTW_VERSION^" |\\
  sed -e "s^_FFTWROOT_^$FFTWROOT^" |\\
  sed -e "s^_FFTW_LIB_^$FFTW_LIB^" |\\
  sed -e "s^_FFTW_LIBNAME_^$FFTW_LIBNAME^" |\\
  sed -e "s^_ELPAROOT_^$ELPAROOT^" |\\
  sed -e "s^_ELPA_VERSION_^$ELPA_VERSION^" |\\
  sed -e "s^_ELPA_LIB_^$ELPA_LIB^" |\\
  sed -e "s^_ELPA_LIBNAME_^$ELPA_LIBNAME^" |\\
  sed -e "s^_FC_^$f77^" |\\
  sed -e "s^_MPF_^$MPF^" |\\
  sed -e "s^_CC_^$c77^"> Makefile'
username at computername:~/Desktop/test$ ./test
Word too long.

username at computername:~/Desktop/test$ cat test
#!/bin/csh -f
alias update_makefiles 'sed -e "s^_FOPT_^$FOPT^" < Makefile.orig |\\
  sed -e "s^_FOPT_^$FOPT^" |\\
  sed -e "s^_FPOPT_^$FPOPT^" |\\
  sed -e "s^_OMP_SWITCH_^$OMP_SWITCH^" |\\
  sed -e "s^_LDFLAGS_^$LDFLAGS^" |\\
  sed -e "s^_DPARALLEL_^$DPARALLEL^" |\\
  sed -e "s^_R_LIBS_^$R_LIBS^" |\\
  sed -e "s^_RP_LIBS_^$RP_LIBS^" |\\
  sed -e "s^_SCALAPACKROOT_^$SCALAPACKROOT^" |\\
  sed -e "s^_SCALAPACK_LIBNAME_^$SCALAPACK_LIBNAME^" |\\
  sed -e "s^_BLACSROOT_^$BLACSROOT^" |\\
  sed -e "s^_BLACS_LIBNAME_^$BLACS_LIBNAME^" |\\
  sed -e "s^_MKL_TARGET_ARCH_^$MKL_TARGET_ARCH^" |\\
  sed -e "s^_LIBXCROOT_^$LIBXCROOT^" |\\
  sed -e "s^_LIBXC_LIBNAME_^$LIBXC_LIBNAME^" |\\
  sed -e "s^_LIBXC_LIBDNAME_^$LIBXC_LIBDNAME^" |\\
  sed -e "s^_LIBXC_FORTRAN_^$LIBXC_FORTRAN^" |\\
  sed -e "s^_FFTW_VERSION_^$FFTW_VERSION^" |\\
  sed -e "s^_FFTWROOT_^$FFTWROOT^" |\\
  sed -e "s^_FFTW_LIB_^$FFTW_LIB^" |\\
  sed -e "s^_FFTW_LIBNAME_^$FFTW_LIBNAME^" |\\
  sed -e "s^_ELPAROOT_^$ELPAROOT^" |\\
  sed -e "s^_ELPA_VERSION_^$ELPA_VERSION^" |\\
  sed -e "s^_ELPA_LIB_^$ELPA_LIB^"'

alias update_makefiles1 'sed -e "s^_ELPA_LIBNAME_^$ELPA_LIBNAME^" |\\
  sed -e "s^_FC_^$f77^" |\\
  sed -e "s^_MPF_^$MPF^" |\\
  sed -e "s^_CC_^$c77^"> Makefile'
username at computername:~/Desktop/test$ ./test



More information about the Wien mailing list