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 c747534a1328c770cc373ae5d25de03308575eda..003df0ce009eff0690535e20554a2e846bf1ce39 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 b9325e88dcfacaf05be5ce374b6400e5fdae3915..bb1073f4bf6ac20a391dbfc5bddadc4fef2f43f9 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 aaa9e132e457297435b425d0c58cc6f6e8a84a87..0037a2a6f57474e6770dea0ad6ab54966874a6d9 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