aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-05-23 20:40:19 +0200
committerThomas White <taw@physics.org>2014-05-23 20:46:59 +0200
commit8d878cbfaa38fd6d172002214f6c02e97441989f (patch)
tree480c6fe695d2fe6e7cde1f053ec842f257147021 /scripts
parentd01f8349223705860c53d78414b758575aa3e816 (diff)
Tidy up gen-sfs and gen-sfs-expand
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-sfs2
-rwxr-xr-xscripts/gen-sfs-expand4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen-sfs b/scripts/gen-sfs
index 3c540a43..24e037bf 100755
--- a/scripts/gen-sfs
+++ b/scripts/gen-sfs
@@ -64,6 +64,7 @@ if [ $? -ne 0 ]; then
fi
rm -f ${PDB}.mtz
+rm -f ${PDB}-sorted.mtz
perl < ${PDB}-temp.hkl > ${PDB}.hkl << WIBBLE
use strict;
@@ -97,6 +98,5 @@ while ( \$line = <FILE> ) {
close(FILE);
printf("End of reflections\n");
WIBBLE
-exit
rm -f ${PDB}-temp.hkl
diff --git a/scripts/gen-sfs-expand b/scripts/gen-sfs-expand
index baadbf27..1cba00e4 100755
--- a/scripts/gen-sfs-expand
+++ b/scripts/gen-sfs-expand
@@ -54,7 +54,7 @@ if [ $? -ne 0 ]; then
fi
echo "Running sftools to expand reflections to P1..."
-sftools << EOF
+sftools >> gen-sfs.html << EOF
READ ${PDB}-sorted.mtz
EXPAND
WRITE ${PDB}-P1.mtz
@@ -73,6 +73,7 @@ fi
rm -f ${PDB}-P1.mtz
rm -f ${PDB}.mtz
+rm -f ${PDB}-sorted.mtz
perl < ${PDB}-temp.hkl > ${PDB}.hkl << WIBBLE
use strict;
@@ -106,6 +107,5 @@ while ( \$line = <FILE> ) {
close(FILE);
printf("End of reflections\n");
WIBBLE
-exit
rm -f ${PDB}-temp.hkl