abinit/tests/cpu/Refs/changeref

17 lines
376 B
Bash
Executable File

#!/bin/bash
# Copyright (C) 1998-2025 ABINIT group (XG).
#
# Change the reference files to allow the ngfft to be present in the diff
for file in "$@"
do
echo "working on $file"
rm -f tmp.file
sed -e 's&getcut:&getcut &' $file > tmp.file
echo "changes done "
# put the modified file at the correct place
rm -f $file
mv tmp.file $file
echo "file $file written "
done