chiark / gitweb /
Rename yppsc-* helpers
[ypp-sc-tools.web-live.git] / pctb / yppsc-ppmlookup
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