aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--Makefile.in6
-rwxr-xr-xscripts/indexed-filenames32
3 files changed, 40 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index b4ecd7e5..aef3d105 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -203,14 +203,16 @@ script_DATA = scripts/check-near-bragg scripts/random-image \
scripts/sequence-image scripts/zone-axes \
scripts/alternate-stream scripts/README scripts/cell-please \
scripts/check-hkl-completeness.gp scripts/check-hkl-quality.gp \
- scripts/compare-hkl.gp scripts/check-peak-detection
+ scripts/compare-hkl.gp scripts/check-peak-detection \
+ scripts/indexed-filenames
EXTRA_DIST += scripts/check-near-bragg scripts/random-image \
scripts/wibbletron scripts/create-mtz scripts/mtz2hkl \
scripts/sequence-image scripts/zone-axes \
scripts/alternate-stream scripts/README scripts/cell-please \
scripts/check-hkl-completeness.gp scripts/check-hkl-quality.gp \
- scripts/compare-hkl.gp scripts/check-peak-detection
+ scripts/compare-hkl.gp scripts/check-peak-detection \
+ scripts/indexed-filenames
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
diff --git a/Makefile.in b/Makefile.in
index 72dd96de..245041db 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -665,7 +665,8 @@ EXTRA_DIST = configure m4/gnulib-cache.m4 tests/first_merge_check \
scripts/mtz2hkl scripts/sequence-image scripts/zone-axes \
scripts/alternate-stream scripts/README scripts/cell-please \
scripts/check-hkl-completeness.gp scripts/check-hkl-quality.gp \
- scripts/compare-hkl.gp scripts/check-peak-detection
+ scripts/compare-hkl.gp scripts/check-peak-detection \
+ scripts/indexed-filenames
SUBDIRS = lib doc/reference
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -Wall
@@ -794,7 +795,8 @@ script_DATA = scripts/check-near-bragg scripts/random-image \
scripts/sequence-image scripts/zone-axes \
scripts/alternate-stream scripts/README scripts/cell-please \
scripts/check-hkl-completeness.gp scripts/check-hkl-quality.gp \
- scripts/compare-hkl.gp scripts/check-peak-detection
+ scripts/compare-hkl.gp scripts/check-peak-detection \
+ scripts/indexed-filenames
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
all: config.h
diff --git a/scripts/indexed-filenames b/scripts/indexed-filenames
new file mode 100755
index 00000000..842d264d
--- /dev/null
+++ b/scripts/indexed-filenames
@@ -0,0 +1,32 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+open(FH, $ARGV[0]);
+
+my $line;
+my $is_indexed;
+my $filename;
+
+while ( $line = <FH> ) {
+
+ if ( $line =~ /^-----\ Begin chunk\ -----$/ ) {
+ $is_indexed = 0;
+ }
+
+ if ( $line =~ /^Image\ filename: (.*)$/ ) {
+ $filename = $1;
+ }
+
+ if ( $line =~ /^Cell\ parameters/ ) {
+ $is_indexed = 1;
+ }
+
+ if ( $line =~ /^-----\ End chunk\ -----$/ ) {
+ if ( $is_indexed ) {
+ printf("%s\n", $filename);
+ }
+ }
+
+
+}