# Script to copy source files from MAD git repository # This is meant for maintainers of the mad_tpsa library and is not of general interest. # First: Download MAD if needed via: # git clone https://github.com/MethodicalAcceleratorDesign/MAD.git MAD # Setup: Run this script in mad_tpsa directory: # ./doc/pull_from_mad_git cd MAD git pull cd .. # rm -rf code/* tests/* cp -a MAD/src/mad_*.[hc] MAD/src/mad_*.tc MAD/src/sse code/ cp -a MAD/src/libgtpsa/* tests/ mv tests/gtpsa.f90 code/ # remove files not needed rm code/mad_main.c code/mad_fft.c code/mad_nlopt.[hc] # add files needed to replace MAD core dependencies. Currently this is mad_log.c. cp tests/mad_*.[hc] code rm tests/mad_log.c # Make library and compile tests mk