chiark / gitweb /
Rename yppsc-* helpers
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 21 Jun 2009 11:56:33 +0000 (12:56 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 21 Jun 2009 11:56:33 +0000 (12:56 +0100)
pctb/README
pctb/commod-results-processor [moved from pctb/yppsc-commod-processor with 100% similarity]
pctb/convert.c
pctb/decode-pctb-marketdata [moved from pctb/yppsc-decode-marketdata with 100% similarity]
pctb/dictionary-manager
pctb/dictionary-pixmap-options [moved from pctb/yppsc-resolver-pixoptions with 100% similarity]
pctb/yppsc-ppmlookup [deleted file]

index c747534..003df0c 100644 (file)
@@ -94,8 +94,8 @@ The program reads and writes the following files:
 
 These files are all in the current working directory.  There is not
 yet any feature to have them be somewhere else.  The helper programs
-  yppsc-ocr-resolver
-  yppsc-commod-processor
+  dictionary-manager
+  commod-results-processor
 must (currently) also be in the current directory.
 
 Future versions may have more helpers and more data files.
index b9325e8..bb1073f 100644 (file)
@@ -97,9 +97,7 @@ static void run_analysis(void) {
 
   if (!processor) {
     sysassert( dup2(fileno(tf),0) ==0 );
-    execlp("./yppsc-commod-processor", "yppsc-commod-processor",
-          o_outputmode, (char*)0);
-    sysassert(!"execlp commod-processor failed");
+    EXECLP_HELPER("commod-results-processor", o_outputmode, (char*)0);
   }
 
   waitpid_check_exitstatus(processor, "output processor/uploader");
index aaa9e13..0037a2a 100755 (executable)
@@ -335,7 +335,7 @@ proc required/pixmap {} {
     set data [exec pnmscale 2 << $ppm]
     image create photo image/main -data $data
 
-    set alloptions [exec ./yppsc-resolver-pixoptions $unk_what]
+    set alloptions [exec ./dictionary-pixmap-options $unk_what]
 
     read_database ./pixmaps.txt
 
diff --git a/pctb/yppsc-ppmlookup b/pctb/yppsc-ppmlookup
deleted file mode 100755 (executable)
index efb785d..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-set -ex
-
-needle=$(pnmnoraw)
-
-exec 3<database.ppm
-
-while true; do
-       read <&3 title
-       if [ x"$title" = x. ]; then
-               exit 0
-       fi
-       straw=$(pnmnoraw <&3)
-       if [ x"$straw" = x"$needle" ]; then
-               printf "%s\n" "$title"
-               exit 0
-       fi
-done