source: research/2008-displacement/study-5.sh @ 2278

Last change on this file since 2278 was 2278, checked in by Sam Hocevar, 14 years ago
  • Reactivate full ED analysis (raster FS, raster JaJuNi?, serpentine Ostromoukhov and serpentine optimum) as mode 5.
  • Add a script to perform mode 5 on a directory's contents.
  • Property svn:executable set to *
File size: 424 bytes
Line 
1#!/bin/sh
2
3set -e
4
5if [ ! -x ./main ]; then
6    make main
7fi
8
9if [ "$1" = "" ]; then
10    echo "Usage: $0 <directory>"
11    exit 1
12fi
13
14if [ ! -d "$1" ]; then
15    echo "$0: $1 is not a directory"
16    exit 1
17fi
18
19OUTPUT="$(echo "$1" | tr -d /).txt"
20echo "$0: outputting to $OUTPUT"
21
22touch "$OUTPUT"
23find $1 -name '?????????????.???' | while read i; do
24    TMP="$(./main -5 $i)"
25    echo "$TMP" >> "$OUTPUT"
26    echo "$TMP"
27done
28
Note: See TracBrowser for help on using the repository browser.