From e888c1dd3476ca49bccf82b93b4a3633587d400d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 Jun 2009 12:56:33 +0100 Subject: [PATCH] Rename yppsc-* helpers --- pctb/README | 4 ++-- ...mmod-processor => commod-results-processor} | 0 pctb/convert.c | 4 +--- ...ecode-marketdata => decode-pctb-marketdata} | 0 pctb/dictionary-manager | 2 +- ...er-pixoptions => dictionary-pixmap-options} | 0 pctb/yppsc-ppmlookup | 18 ------------------ 7 files changed, 4 insertions(+), 24 deletions(-) rename pctb/{yppsc-commod-processor => commod-results-processor} (100%) rename pctb/{yppsc-decode-marketdata => decode-pctb-marketdata} (100%) rename pctb/{yppsc-resolver-pixoptions => dictionary-pixmap-options} (100%) delete mode 100755 pctb/yppsc-ppmlookup diff --git a/pctb/README b/pctb/README index c747534..003df0c 100644 --- a/pctb/README +++ b/pctb/README @@ -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. diff --git a/pctb/yppsc-commod-processor b/pctb/commod-results-processor similarity index 100% rename from pctb/yppsc-commod-processor rename to pctb/commod-results-processor diff --git a/pctb/convert.c b/pctb/convert.c index b9325e8..bb1073f 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -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"); diff --git a/pctb/yppsc-decode-marketdata b/pctb/decode-pctb-marketdata similarity index 100% rename from pctb/yppsc-decode-marketdata rename to pctb/decode-pctb-marketdata diff --git a/pctb/dictionary-manager b/pctb/dictionary-manager index aaa9e13..0037a2a 100755 --- a/pctb/dictionary-manager +++ b/pctb/dictionary-manager @@ -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-resolver-pixoptions b/pctb/dictionary-pixmap-options similarity index 100% rename from pctb/yppsc-resolver-pixoptions rename to pctb/dictionary-pixmap-options diff --git a/pctb/yppsc-ppmlookup b/pctb/yppsc-ppmlookup deleted file mode 100755 index efb785d..0000000 --- a/pctb/yppsc-ppmlookup +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -set -ex - -needle=$(pnmnoraw) - -exec 3